diff options
| author | Eli Zaretskii | 2010-10-31 20:50:02 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-10-31 20:50:02 +0200 |
| commit | 7ea692f66f4367755bb9e80991182ac55c90ead2 (patch) | |
| tree | b645d2ee172a015658b54f2ad245c924ad40e180 /src/termchar.h | |
| parent | d009ae66b405e38113c1ed29ff50832e5eec2b29 (diff) | |
| download | emacs-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/termchar.h')
| -rw-r--r-- | src/termchar.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/src/termchar.h b/src/termchar.h index 1b4cd0891da..ac652640b17 100644 --- a/src/termchar.h +++ b/src/termchar.h | |||
| @@ -70,34 +70,9 @@ struct tty_display_info | |||
| 70 | struct frame *previous_frame; | 70 | struct frame *previous_frame; |
| 71 | int previous_color_mode; | 71 | int previous_color_mode; |
| 72 | 72 | ||
| 73 | /* These variables describe the range of text currently shown in its | 73 | /* Information about the range of text currently shown in |
| 74 | mouse-face, together with the window they apply to. As long as | 74 | mouse-face. */ |
| 75 | the mouse stays within this range, we need not redraw anything on | 75 | Mouse_HLInfo mouse_highlight; |
| 76 | its account. Rows and columns are glyph matrix positions in | ||
| 77 | MOUSE_FACE_WINDOW. */ | ||
| 78 | int mouse_face_beg_row, mouse_face_beg_col; | ||
| 79 | int mouse_face_beg_x, mouse_face_beg_y; | ||
| 80 | int mouse_face_end_row, mouse_face_end_col; | ||
| 81 | int mouse_face_end_x, mouse_face_end_y; | ||
| 82 | int mouse_face_past_end; | ||
| 83 | Lisp_Object mouse_face_window; | ||
| 84 | int mouse_face_face_id; | ||
| 85 | Lisp_Object mouse_face_overlay; | ||
| 86 | |||
| 87 | /* 1 if a mouse motion event came and we didn't handle it right away because | ||
| 88 | gc was in progress. */ | ||
| 89 | int mouse_face_deferred_gc; | ||
| 90 | |||
| 91 | /* FRAME and X, Y position of mouse when last checked for | ||
| 92 | highlighting. X and Y can be negative or out of range for the frame. */ | ||
| 93 | struct frame *mouse_face_mouse_frame; | ||
| 94 | int mouse_face_mouse_x, mouse_face_mouse_y; | ||
| 95 | |||
| 96 | /* Nonzero means defer mouse-motion highlighting. */ | ||
| 97 | int mouse_face_defer; | ||
| 98 | |||
| 99 | /* Nonzero means that the mouse highlight should not be shown. */ | ||
| 100 | int mouse_face_hidden; | ||
| 101 | 76 | ||
| 102 | /* Buffer used internally by termcap (see tgetent in the Termcap | 77 | /* Buffer used internally by termcap (see tgetent in the Termcap |
| 103 | manual). Only init_tty and delete_tty should change this. */ | 78 | manual). Only init_tty and delete_tty should change this. */ |