aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.h
diff options
context:
space:
mode:
authorEli Zaretskii2010-10-31 20:50:02 +0200
committerEli Zaretskii2010-10-31 20:50:02 +0200
commit7ea692f66f4367755bb9e80991182ac55c90ead2 (patch)
treeb645d2ee172a015658b54f2ad245c924ad40e180 /src/w32term.h
parentd009ae66b405e38113c1ed29ff50832e5eec2b29 (diff)
downloademacs-7ea692f66f4367755bb9e80991182ac55c90ead2.tar.gz
emacs-7ea692f66f4367755bb9e80991182ac55c90ead2.zip
Start redesigning portable mouse highlight. Not compiled.
xdisp.c (get_tool_bar_item, handle_tool_bar_click) (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor) (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p) (note_mode_line_or_margin_highlight, note_mouse_highlight) (x_clear_window_mouse_face, cancel_mouse_face, expose_frame): Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_* members were accessed for mouse highlight purposes. frame.h (MOUSE_HL_INFO): New macro. lisp.h (Mouse_HLInfo): New data type. xterm.h (struct x_display_info): w32term.h (struct w32_display_info): nsterm.h (struct ns_display_info): termchar.h (struct tty_display_info): Use it instead of mouse_face_* members. dispextern.h (DPYINFO_DEFINED): Remove definition. (FRAME_X_DISPLAY_INFO): Remove definition. (show_mouse_face, clear_mouse_face): Update type of 1st argument.
Diffstat (limited to 'src/w32term.h')
-rw-r--r--src/w32term.h33
1 files changed, 3 insertions, 30 deletions
diff --git a/src/w32term.h b/src/w32term.h
index ea245144ac3..bd535cae57a 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -143,36 +143,9 @@ struct w32_display_info
143 /* Reusable Graphics Context for drawing a cursor in a non-default face. */ 143 /* Reusable Graphics Context for drawing a cursor in a non-default face. */
144 XGCValues *scratch_cursor_gc; 144 XGCValues *scratch_cursor_gc;
145 145
146 /* These variables describe the range of text currently shown in its 146 /* Information about the range of text currently shown in
147 mouse-face, together with the window they apply to. As long as 147 mouse-face. */
148 the mouse stays within this range, we need not redraw anything on 148 Mouse_HLInfo mouse_highlight;
149 its account. Rows and columns are glyph matrix positions in
150 MOUSE_FACE_WINDOW. */
151 int mouse_face_beg_row, mouse_face_beg_col;
152 int mouse_face_beg_x, mouse_face_beg_y;
153 int mouse_face_end_row, mouse_face_end_col;
154 int mouse_face_end_x, mouse_face_end_y;
155 int mouse_face_past_end;
156 Lisp_Object mouse_face_window;
157 int mouse_face_face_id;
158 Lisp_Object mouse_face_overlay;
159
160 /* 1 if a mouse motion event came and we didn't handle it right away because
161 gc was in progress. */
162 int mouse_face_deferred_gc;
163
164 /* FRAME and X, Y position of mouse when last checked for
165 highlighting. X and Y can be negative or out of range for the frame. */
166 struct frame *mouse_face_mouse_frame;
167 int mouse_face_mouse_x, mouse_face_mouse_y;
168
169 /* Nonzero means defer mouse-motion highlighting. */
170 int mouse_face_defer;
171
172 /* Nonzero means that the mouse highlight should not be shown. */
173 int mouse_face_hidden;
174
175 int mouse_face_image_state;
176 149
177 char *w32_id_name; 150 char *w32_id_name;
178 151