diff options
| author | Richard M. Stallman | 1998-05-01 04:52:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-01 04:52:40 +0000 |
| commit | 523812cdf373eb68bd1dc3cdfabca8de965ce569 (patch) | |
| tree | 517adab60d9f0cff37e01d1db681cf89fc8eef85 | |
| parent | a24dc617a836a57458a72073ea6097154fd7d348 (diff) | |
| download | emacs-523812cdf373eb68bd1dc3cdfabca8de965ce569.tar.gz emacs-523812cdf373eb68bd1dc3cdfabca8de965ce569.zip | |
(event_kind): New event type `drag_n_drop'.
| -rw-r--r-- | src/termhooks.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index ff4e9ef74c7..f5928d7c54d 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -233,7 +233,8 @@ enum event_kind | |||
| 233 | .timestamp gives a timestamp (in | 233 | .timestamp gives a timestamp (in |
| 234 | milliseconds) for the click. */ | 234 | milliseconds) for the click. */ |
| 235 | #ifdef WINDOWSNT | 235 | #ifdef WINDOWSNT |
| 236 | mouse_wheel, /* A mouse-wheel event is generated by a | 236 | mouse_wheel, /* A mouse-wheel event is generated |
| 237 | on WINDOWSNT by a | ||
| 237 | wheel on a mouse (e.g., MS Intellimouse). | 238 | wheel on a mouse (e.g., MS Intellimouse). |
| 238 | The event contains a delta that corresponds | 239 | The event contains a delta that corresponds |
| 239 | to the amount and direction that the wheel | 240 | to the amount and direction that the wheel |
| @@ -277,8 +278,21 @@ enum event_kind | |||
| 277 | (Only the toolkit version uses these.) */ | 278 | (Only the toolkit version uses these.) */ |
| 278 | iconify_event, /* An X client iconified this window. */ | 279 | iconify_event, /* An X client iconified this window. */ |
| 279 | deiconify_event, /* An X client deiconified this window. */ | 280 | deiconify_event, /* An X client deiconified this window. */ |
| 280 | menu_bar_activate_event /* A button press in the menu bar | 281 | menu_bar_activate_event, /* A button press in the menu bar |
| 281 | (toolkit version only). */ | 282 | (toolkit version only). */ |
| 283 | drag_n_drop /* A drag-n-drop event is generated when | ||
| 284 | files selected outside of Emacs are dropped | ||
| 285 | onto an Emacs window. | ||
| 286 | Currently used only on Windows NT. | ||
| 287 | .modifiers holds the state of the | ||
| 288 | modifier keys. | ||
| 289 | .x and .y give the mouse position, | ||
| 290 | in characters, within the window. | ||
| 291 | .frame_or_window is a cons of the frame | ||
| 292 | in which the drop was made and a list of | ||
| 293 | the filenames of the dropped files. | ||
| 294 | .timestamp gives a timestamp (in | ||
| 295 | milliseconds) for the click. */ | ||
| 282 | }; | 296 | }; |
| 283 | 297 | ||
| 284 | /* If a struct input_event has a kind which is selection_request_event | 298 | /* If a struct input_event has a kind which is selection_request_event |