aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-07-21 21:43:52 +0000
committerGerd Moellmann1999-07-21 21:43:52 +0000
commit6820433ec30a17a24df70fa4853da5f6a9c312e2 (patch)
tree6d15dcf66d546607b23b4ce6772bf0953e44700c /src
parent9dd7eec678ffac9edb405660252b158b4f1451f6 (diff)
downloademacs-6820433ec30a17a24df70fa4853da5f6a9c312e2.tar.gz
emacs-6820433ec30a17a24df70fa4853da5f6a9c312e2.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/termhooks.h32
1 files changed, 23 insertions, 9 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index e3277e56608..3f7fcd5bc4f 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -22,6 +22,9 @@ Boston, MA 02111-1307, USA. */
22 22
23/* Miscellanea. */ 23/* Miscellanea. */
24 24
25struct glyph;
26struct 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. */
26extern FILE *termscript; 29extern FILE *termscript;
27 30
@@ -32,7 +35,7 @@ extern FILE *termscript;
32 35
33/* Text display hooks. */ 36/* Text display hooks. */
34 37
35extern void (*cursor_to_hook) P_ ((int, int)); 38extern void (*cursor_to_hook) P_ ((int vpos, int hpos));
36extern void (*raw_cursor_to_hook) P_ ((int, int)); 39extern void (*raw_cursor_to_hook) P_ ((int, int));
37 40
38extern void (*clear_to_end_hook) P_ ((void)); 41extern void (*clear_to_end_hook) P_ ((void));
@@ -41,11 +44,11 @@ extern void (*clear_end_of_line_hook) P_ ((int));
41 44
42extern void (*ins_del_lines_hook) P_ ((int, int)); 45extern void (*ins_del_lines_hook) P_ ((int, int));
43 46
44extern void (*change_line_highlight_hook) P_ ((int, int, int)); 47extern void (*change_line_highlight_hook) P_ ((int, int, int, int));
45extern void (*reassert_line_highlight_hook) P_ ((int, int)); 48extern void (*reassert_line_highlight_hook) P_ ((int, int));
46 49
47extern void (*insert_glyphs_hook) P_ ((GLYPH *, int)); 50extern void (*insert_glyphs_hook) P_ ((struct glyph *s, int n));
48extern void (*write_glyphs_hook) P_ ((GLYPH *, int)); 51extern void (*write_glyphs_hook) P_ ((struct glyph *s, int n));
49extern void (*delete_glyphs_hook) P_ ((int)); 52extern void (*delete_glyphs_hook) P_ ((int));
50 53
51extern void (*ring_bell_hook) P_ ((void)); 54extern void (*ring_bell_hook) P_ ((void));
@@ -65,7 +68,10 @@ enum scroll_bar_part {
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.
@@ -282,7 +288,7 @@ enum event_kind
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
@@ -297,9 +303,17 @@ enum event_kind
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