Mercurial > emacs
comparison src/termhooks.h @ 21515:fb4c986db0e2
Add more prototypes.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Tue, 14 Apr 1998 12:33:47 +0000 |
parents | 3c251b1dcdf5 |
children | 93207874c93c |
comparison
equal
deleted
inserted
replaced
21514:fa9ff387d260 | 21515:fb4c986db0e2 |
---|---|
23 /* Miscellanea. */ | 23 /* Miscellanea. */ |
24 | 24 |
25 /* If nonzero, send all terminal output characters to this stream also. */ | 25 /* If nonzero, send all terminal output characters to this stream also. */ |
26 extern FILE *termscript; | 26 extern FILE *termscript; |
27 | 27 |
28 /* Only use prototypes when lisp.h has been included. */ | |
29 #ifndef P_ | |
30 #define P_(X) () | |
31 #endif | |
28 | 32 |
29 /* Text display hooks. */ | 33 /* Text display hooks. */ |
30 | 34 |
31 extern int (*cursor_to_hook) (); | 35 extern void (*cursor_to_hook) P_ ((int, int)); |
32 extern int (*raw_cursor_to_hook) (); | 36 extern void (*raw_cursor_to_hook) P_ ((int, int)); |
33 | 37 |
34 extern int (*clear_to_end_hook) (); | 38 extern void (*clear_to_end_hook) P_ ((void)); |
35 extern int (*clear_frame_hook) (); | 39 extern void (*clear_frame_hook) P_ ((void)); |
36 extern int (*clear_end_of_line_hook) (); | 40 extern void (*clear_end_of_line_hook) P_ ((int)); |
37 | 41 |
38 extern int (*ins_del_lines_hook) (); | 42 extern void (*ins_del_lines_hook) P_ ((int, int)); |
39 | 43 |
40 extern int (*change_line_highlight_hook) (); | 44 extern void (*change_line_highlight_hook) P_ ((int, int, int)); |
41 extern int (*reassert_line_highlight_hook) (); | 45 extern void (*reassert_line_highlight_hook) P_ ((int, int)); |
42 | 46 |
43 extern int (*insert_glyphs_hook) (); | 47 extern void (*insert_glyphs_hook) P_ ((GLYPH *, int)); |
44 extern int (*write_glyphs_hook) (); | 48 extern void (*write_glyphs_hook) P_ ((GLYPH *, int)); |
45 extern int (*delete_glyphs_hook) (); | 49 extern void (*delete_glyphs_hook) P_ ((int)); |
46 | 50 |
47 extern int (*ring_bell_hook) (); | 51 extern void (*ring_bell_hook) P_ ((void)); |
48 | 52 |
49 extern int (*reset_terminal_modes_hook) (); | 53 extern void (*reset_terminal_modes_hook) P_ ((void)); |
50 extern int (*set_terminal_modes_hook) (); | 54 extern void (*set_terminal_modes_hook) P_ ((void)); |
51 extern int (*update_begin_hook) (); | 55 extern void (*update_begin_hook) P_ ((struct frame *)); |
52 extern int (*update_end_hook) (); | 56 extern void (*update_end_hook) P_ ((struct frame *)); |
53 extern int (*set_terminal_window_hook) (); | 57 extern void (*set_terminal_window_hook) P_ ((int)); |
54 | 58 |
55 | 59 |
56 | 60 |
57 /* Multi-frame and mouse support hooks. */ | 61 /* Multi-frame and mouse support hooks. */ |
58 | 62 |
80 | 84 |
81 Set *time to the time the mouse was at the returned position. | 85 Set *time to the time the mouse was at the returned position. |
82 | 86 |
83 This should clear mouse_moved until the next motion | 87 This should clear mouse_moved until the next motion |
84 event arrives. */ | 88 event arrives. */ |
85 extern void (*mouse_position_hook) ( /* FRAME_PTR *f, | 89 extern void (*mouse_position_hook) P_ ((struct frame **f, int, |
86 Lisp_Object *bar_window, | 90 Lisp_Object *bar_window, |
87 enum scroll_bar_part *part, | 91 enum scroll_bar_part *part, |
88 Lisp_Object *x, | 92 Lisp_Object *x, |
89 Lisp_Object *y, | 93 Lisp_Object *y, |
90 unsigned long *time */ ); | 94 unsigned long *time)); |
91 | 95 |
92 /* The window system handling code should set this if the mouse has | 96 /* The window system handling code should set this if the mouse has |
93 moved since the last call to the mouse_position_hook. Calling that | 97 moved since the last call to the mouse_position_hook. Calling that |
94 hook should clear this. */ | 98 hook should clear this. */ |
95 extern int mouse_moved; | 99 extern int mouse_moved; |
96 | 100 |
97 /* When a frame's focus redirection is changed, this hook tells the | 101 /* When a frame's focus redirection is changed, this hook tells the |
98 window system code to re-decide where to put the highlight. Under | 102 window system code to re-decide where to put the highlight. Under |
99 X, this means that Emacs lies about where the focus is. */ | 103 X, this means that Emacs lies about where the focus is. */ |
100 extern void (*frame_rehighlight_hook) ( /* void */ ); | 104 extern void (*frame_rehighlight_hook) P_ ((struct frame *)); |
101 | 105 |
102 /* If we're displaying frames using a window system that can stack | 106 /* If we're displaying frames using a window system that can stack |
103 frames on top of each other, this hook allows you to bring a frame | 107 frames on top of each other, this hook allows you to bring a frame |
104 to the front, or bury it behind all the other windows. If this | 108 to the front, or bury it behind all the other windows. If this |
105 hook is zero, that means the device we're displaying on doesn't | 109 hook is zero, that means the device we're displaying on doesn't |
107 anything. | 111 anything. |
108 | 112 |
109 If RAISE is non-zero, F is brought to the front, before all other | 113 If RAISE is non-zero, F is brought to the front, before all other |
110 windows. If RAISE is zero, F is sent to the back, behind all other | 114 windows. If RAISE is zero, F is sent to the back, behind all other |
111 windows. */ | 115 windows. */ |
112 extern void (*frame_raise_lower_hook) ( /* FRAME_PTR f, int raise */ ); | 116 extern void (*frame_raise_lower_hook) P_ ((struct frame *f, int raise)); |
113 | 117 |
114 | 118 |
115 /* Scroll bar hooks. */ | 119 /* Scroll bar hooks. */ |
116 | 120 |
117 /* The representation of scroll bars is determined by the code which | 121 /* The representation of scroll bars is determined by the code which |
138 at (TOP, LEFT), and be LENGTH rows high. Set its handle to | 142 at (TOP, LEFT), and be LENGTH rows high. Set its handle to |
139 indicate that we are displaying PORTION characters out of a total | 143 indicate that we are displaying PORTION characters out of a total |
140 of WHOLE characters, starting at POSITION. If WINDOW doesn't yet | 144 of WHOLE characters, starting at POSITION. If WINDOW doesn't yet |
141 have a scroll bar, create one for it. */ | 145 have a scroll bar, create one for it. */ |
142 extern void (*set_vertical_scroll_bar_hook) | 146 extern void (*set_vertical_scroll_bar_hook) |
143 ( /* struct window *window, | 147 P_ ((struct window *window, |
144 int portion, int whole, int position */ ); | 148 int portion, int whole, int position)); |
145 | 149 |
146 | 150 |
147 /* The following three hooks are used when we're doing a thorough | 151 /* The following three hooks are used when we're doing a thorough |
148 redisplay of the frame. We don't explicitly know which scroll bars | 152 redisplay of the frame. We don't explicitly know which scroll bars |
149 are going to be deleted, because keeping track of when windows go | 153 are going to be deleted, because keeping track of when windows go |
162 this and the judge_scroll_bars_hook will get rid of them. | 166 this and the judge_scroll_bars_hook will get rid of them. |
163 | 167 |
164 If non-zero, this hook should be safe to apply to any frame, | 168 If non-zero, this hook should be safe to apply to any frame, |
165 whether or not it can support scroll bars, and whether or not it is | 169 whether or not it can support scroll bars, and whether or not it is |
166 currently displaying them. */ | 170 currently displaying them. */ |
167 extern void (*condemn_scroll_bars_hook)( /* FRAME_PTR *frame */ ); | 171 extern void (*condemn_scroll_bars_hook) P_ ((struct frame *frame)); |
168 | 172 |
169 /* Unmark WINDOW's scroll bar for deletion in this judgement cycle. | 173 /* Unmark WINDOW's scroll bar for deletion in this judgement cycle. |
170 Note that it's okay to redeem a scroll bar that is not condemned. */ | 174 Note that it's okay to redeem a scroll bar that is not condemned. */ |
171 extern void (*redeem_scroll_bar_hook)( /* struct window *window */ ); | 175 extern void (*redeem_scroll_bar_hook) P_ ((struct window *window)); |
172 | 176 |
173 /* Remove all scroll bars on FRAME that haven't been saved since the | 177 /* Remove all scroll bars on FRAME that haven't been saved since the |
174 last call to `*condemn_scroll_bars_hook'. | 178 last call to `*condemn_scroll_bars_hook'. |
175 | 179 |
176 This should be applied to each frame after each time its window | 180 This should be applied to each frame after each time its window |
179 calling this and condemn_scroll_bars_hook will get rid of them. | 183 calling this and condemn_scroll_bars_hook will get rid of them. |
180 | 184 |
181 If non-zero, this hook should be safe to apply to any frame, | 185 If non-zero, this hook should be safe to apply to any frame, |
182 whether or not it can support scroll bars, and whether or not it is | 186 whether or not it can support scroll bars, and whether or not it is |
183 currently displaying them. */ | 187 currently displaying them. */ |
184 extern void (*judge_scroll_bars_hook)( /* FRAME_PTR *FRAME */ ); | 188 extern void (*judge_scroll_bars_hook) P_ ((struct frame *FRAME)); |
185 | 189 |
186 | 190 |
187 /* Input queue declarations and hooks. */ | 191 /* Input queue declarations and hooks. */ |
188 | |
189 /* Called to read input events. */ | |
190 extern int (*read_socket_hook) (); | |
191 | |
192 /* Called when a frame's display becomes entirely up to date. */ | |
193 extern int (*frame_up_to_date_hook) (); | |
194 | 192 |
195 /* Expedient hack: only provide the below definitions to files that | 193 /* Expedient hack: only provide the below definitions to files that |
196 are prepared to handle lispy things. CONSP is defined iff lisp.h | 194 are prepared to handle lispy things. CONSP is defined iff lisp.h |
197 has been included before this file. */ | 195 has been included before this file. */ |
198 #ifdef CONSP | 196 #ifdef CONSP |
320 and whose cdr is the Lisp object that is the event's value. */ | 318 and whose cdr is the Lisp object that is the event's value. */ |
321 /* This field is last so that struct selection_input_event | 319 /* This field is last so that struct selection_input_event |
322 does not overlap with it. */ | 320 does not overlap with it. */ |
323 Lisp_Object frame_or_window; | 321 Lisp_Object frame_or_window; |
324 }; | 322 }; |
323 | |
324 /* Called to read input events. */ | |
325 extern int (*read_socket_hook) P_ ((int, struct input_event *, int, int)); | |
326 | |
327 /* Called when a frame's display becomes entirely up to date. */ | |
328 extern void (*frame_up_to_date_hook) P_ ((struct frame *)); | |
325 | 329 |
326 /* This is used in keyboard.c, to tell how many buttons we will need | 330 /* This is used in keyboard.c, to tell how many buttons we will need |
327 to track the positions of. */ | 331 to track the positions of. */ |
328 #define NUM_MOUSE_BUTTONS (5) | 332 #define NUM_MOUSE_BUTTONS (5) |
329 | 333 |