Mercurial > emacs
comparison src/termhooks.h @ 25001:65dabc032485
(scroll_bar_end_scroll): New.
(scroll_bar_to_top): New.
(scroll_bar_to_bottom): New.
(event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
Some hooks with prototypes.
Add function prototypes.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 21 Jul 1999 21:43:52 +0000 |
parents | c0b139a546c0 |
children | 693ca9ba497a |
comparison
equal
deleted
inserted
replaced
25000:866dad44a275 | 25001:65dabc032485 |
---|---|
20 Boston, MA 02111-1307, USA. */ | 20 Boston, MA 02111-1307, USA. */ |
21 | 21 |
22 | 22 |
23 /* Miscellanea. */ | 23 /* Miscellanea. */ |
24 | 24 |
25 struct glyph; | |
26 struct frame; | |
27 | |
25 /* If nonzero, send all terminal output characters to this stream also. */ | 28 /* If nonzero, send all terminal output characters to this stream also. */ |
26 extern FILE *termscript; | 29 extern FILE *termscript; |
27 | 30 |
28 /* Only use prototypes when lisp.h has been included. */ | 31 /* Only use prototypes when lisp.h has been included. */ |
29 #ifndef P_ | 32 #ifndef P_ |
30 #define P_(X) () | 33 #define P_(X) () |
31 #endif | 34 #endif |
32 | 35 |
33 /* Text display hooks. */ | 36 /* Text display hooks. */ |
34 | 37 |
35 extern void (*cursor_to_hook) P_ ((int, int)); | 38 extern void (*cursor_to_hook) P_ ((int vpos, int hpos)); |
36 extern void (*raw_cursor_to_hook) P_ ((int, int)); | 39 extern void (*raw_cursor_to_hook) P_ ((int, int)); |
37 | 40 |
38 extern void (*clear_to_end_hook) P_ ((void)); | 41 extern void (*clear_to_end_hook) P_ ((void)); |
39 extern void (*clear_frame_hook) P_ ((void)); | 42 extern void (*clear_frame_hook) P_ ((void)); |
40 extern void (*clear_end_of_line_hook) P_ ((int)); | 43 extern void (*clear_end_of_line_hook) P_ ((int)); |
41 | 44 |
42 extern void (*ins_del_lines_hook) P_ ((int, int)); | 45 extern void (*ins_del_lines_hook) P_ ((int, int)); |
43 | 46 |
44 extern void (*change_line_highlight_hook) P_ ((int, int, int)); | 47 extern void (*change_line_highlight_hook) P_ ((int, int, int, int)); |
45 extern void (*reassert_line_highlight_hook) P_ ((int, int)); | 48 extern void (*reassert_line_highlight_hook) P_ ((int, int)); |
46 | 49 |
47 extern void (*insert_glyphs_hook) P_ ((GLYPH *, int)); | 50 extern void (*insert_glyphs_hook) P_ ((struct glyph *s, int n)); |
48 extern void (*write_glyphs_hook) P_ ((GLYPH *, int)); | 51 extern void (*write_glyphs_hook) P_ ((struct glyph *s, int n)); |
49 extern void (*delete_glyphs_hook) P_ ((int)); | 52 extern void (*delete_glyphs_hook) P_ ((int)); |
50 | 53 |
51 extern void (*ring_bell_hook) P_ ((void)); | 54 extern void (*ring_bell_hook) P_ ((void)); |
52 | 55 |
53 extern void (*reset_terminal_modes_hook) P_ ((void)); | 56 extern void (*reset_terminal_modes_hook) P_ ((void)); |
63 enum scroll_bar_part { | 66 enum scroll_bar_part { |
64 scroll_bar_above_handle, | 67 scroll_bar_above_handle, |
65 scroll_bar_handle, | 68 scroll_bar_handle, |
66 scroll_bar_below_handle, | 69 scroll_bar_below_handle, |
67 scroll_bar_up_arrow, | 70 scroll_bar_up_arrow, |
68 scroll_bar_down_arrow | 71 scroll_bar_down_arrow, |
72 scroll_bar_to_top, | |
73 scroll_bar_to_bottom, | |
74 scroll_bar_end_scroll | |
69 }; | 75 }; |
70 | 76 |
71 /* Return the current position of the mouse. | 77 /* Return the current position of the mouse. |
72 | 78 |
73 Set *f to the frame the mouse is in, or zero if the mouse is in no | 79 Set *f to the frame the mouse is in, or zero if the mouse is in no |
280 The frame_or_window field's cdr holds the | 286 The frame_or_window field's cdr holds the |
281 Lisp-level event value. | 287 Lisp-level event value. |
282 (Only the toolkit version uses these.) */ | 288 (Only the toolkit version uses these.) */ |
283 iconify_event, /* An X client iconified this window. */ | 289 iconify_event, /* An X client iconified this window. */ |
284 deiconify_event, /* An X client deiconified this window. */ | 290 deiconify_event, /* An X client deiconified this window. */ |
285 menu_bar_activate_event, /* A button press in the menu bar | 291 menu_bar_activate_event, /* A button press in the menu bar |
286 (toolkit version only). */ | 292 (toolkit version only). */ |
287 drag_n_drop, /* A drag-n-drop event is generated when | 293 drag_n_drop, /* A drag-n-drop event is generated when |
288 files selected outside of Emacs are dropped | 294 files selected outside of Emacs are dropped |
289 onto an Emacs window. | 295 onto an Emacs window. |
290 Currently used only on Windows NT. | 296 Currently used only on Windows NT. |
295 .frame_or_window is a cons of the frame | 301 .frame_or_window is a cons of the frame |
296 in which the drop was made and a list of | 302 in which the drop was made and a list of |
297 the filenames of the dropped files. | 303 the filenames of the dropped files. |
298 .timestamp gives a timestamp (in | 304 .timestamp gives a timestamp (in |
299 milliseconds) for the click. */ | 305 milliseconds) for the click. */ |
300 user_signal /* A user signal. | 306 user_signal, /* A user signal. |
301 .code is a number identifying it, | 307 .code is a number identifying it, |
302 index into lispy_user_signals. */ | 308 index into lispy_user_signals. */ |
309 | |
310 /* Currently only returned when the mouse enters a toolbar item that | |
311 has a help string. Member frame_or_window of the input_event is | |
312 a cons cell whose car is the toolbar's frame and whose cdr is the | |
313 help string. */ | |
314 HELP_EVENT, | |
315 | |
316 TOOLBAR_EVENT | |
303 }; | 317 }; |
304 | 318 |
305 /* If a struct input_event has a kind which is selection_request_event | 319 /* If a struct input_event has a kind which is selection_request_event |
306 or selection_clear_event, then its contents are really described | 320 or selection_clear_event, then its contents are really described |
307 by `struct selection_event'; see xterm.h. */ | 321 by `struct selection_event'; see xterm.h. */ |