diff options
| author | Jim Blandy | 1993-07-05 04:26:30 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-05 04:26:30 +0000 |
| commit | 6765e5b09858e01f446984c83ed19a5ee4745fd2 (patch) | |
| tree | 3016313f573f2b97d17320fa69dd72a2ebee3dfd /src | |
| parent | a03140c8518c8105422e3e395747fb9e267e3b3d (diff) | |
| download | emacs-6765e5b09858e01f446984c83ed19a5ee4745fd2.tar.gz emacs-6765e5b09858e01f446984c83ed19a5ee4745fd2.zip | |
* keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): New
accessors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keyboard.h b/src/keyboard.h index fb9f8b64de6..9095f244571 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -62,12 +62,16 @@ extern Lisp_Object internal_last_event_frame; | |||
| 62 | #define EVENT_START(event) (XCONS (XCONS (event)->cdr)->car) | 62 | #define EVENT_START(event) (XCONS (XCONS (event)->cdr)->car) |
| 63 | #define EVENT_END(event) (XCONS (XCONS (XCONS (event)->cdr)->cdr)->car) | 63 | #define EVENT_END(event) (XCONS (XCONS (XCONS (event)->cdr)->cdr)->car) |
| 64 | 64 | ||
| 65 | /* Extract the click count from a multi-click event. */ | ||
| 66 | #define EVENT_CLICK_COUNT(event) (Fnth ((event), make_number (2))) | ||
| 67 | |||
| 65 | /* Extract the fields of a position. */ | 68 | /* Extract the fields of a position. */ |
| 66 | #define POSN_WINDOW(posn) (XCONS (posn)->car) | 69 | #define POSN_WINDOW(posn) (XCONS (posn)->car) |
| 67 | #define POSN_BUFFER_POSN(posn) (XCONS (XCONS (posn)->cdr)->car) | 70 | #define POSN_BUFFER_POSN(posn) (XCONS (XCONS (posn)->cdr)->car) |
| 68 | #define POSN_WINDOW_POSN(posn) (XCONS (XCONS (XCONS (posn)->cdr)->cdr)->car) | 71 | #define POSN_WINDOW_POSN(posn) (XCONS (XCONS (XCONS (posn)->cdr)->cdr)->car) |
| 69 | #define POSN_TIMESTAMP(posn) \ | 72 | #define POSN_TIMESTAMP(posn) \ |
| 70 | (XCONS (XCONS (XCONS (XCONS (posn)->cdr)->cdr)->cdr)->car) | 73 | (XCONS (XCONS (XCONS (XCONS (posn)->cdr)->cdr)->cdr)->car) |
| 74 | #define POSN_SCROLLBAR_PART(posn) (Fnth ((posn), make_number (4))) | ||
| 71 | 75 | ||
| 72 | /* Some of the event heads. */ | 76 | /* Some of the event heads. */ |
| 73 | extern Lisp_Object Qswitch_frame; | 77 | extern Lisp_Object Qswitch_frame; |