Mercurial > emacs
view doc/lispintro/drawers.eps @ 111413:d53ee71e7e89
Unify mouse-highlight code for all GUI and TTY sessions.
term.c: Remove static mouse_face_* variables. All users
changed.
(term_show_mouse_face, term_clear_mouse_face)
(fast_find_position, term_mouse_highlight): Functions deleted.
(tty_draw_row_with_mouse_face): New function.
(term_mouse_movement): Call note_mouse_highlight instead of
term_mouse_highlight.
nsterm.m (ns_update_window_begin, ns_update_window_end)
(ns_update_end, x_destroy_window, ns_frame_up_to_date)
(ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
(ns_dumpglyphs_image, ns_dumpglyphs_stretch)
(ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
Replace Display_Info with Mouse_HLInfo everywhere where
mouse_face_* members were accessed for mouse highlight purposes.
xterm.c (x_update_window_begin, x_update_window_end)
(x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
(handle_one_xevent, x_free_frame_resources, x_term_init): Replace
Display_Info with Mouse_HLInfo everywhere where mouse_face_*
members were accessed for mouse highlight purposes.
w32term.c (x_update_window_begin, x_update_window_end)
(x_update_end, w32_read_socket, x_free_frame_resources)
(w32_initialize_display_info): Replace Display_Info with
Mouse_HLInfo everywhere where mouse_face_* members were accessed
for mouse highlight purposes.
xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
(note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
unless the frame is on a window-system.
(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.
(coords_in_mouse_face_p): Move prototype out of the
HAVE_WINDOW_SYSTEM conditional.
(x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
HAVE_WINDOW_SYSTEM block.
(try_window_id) [HAVE_GPM || MSDOS]: Call
x_clear_window_mouse_face.
(draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
systems. Call tty_draw_row_with_mouse_face for TTY systems.
(show_mouse_face): Call draw_row_with_mouse_face, instead of
calling draw_glyphs directly.
(show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
(cursor_in_mouse_face_p, rows_from_pos_range)
(mouse_face_from_buffer_pos, mouse_face_from_string_pos)
(note_mode_line_or_margin_highlight, note_mouse_highlight)
(x_clear_window_mouse_face, cancel_mouse_face): Move out of the
HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
fragments.
(note_mouse_highlight): Call popup_activated for MSDOS as well.
Clear mouse highlight if pointer is over glyphs whose OBJECT is an
integer.
(mouse_face_from_buffer_pos): Add parentheses around && within ||.
(x_consider_frame_title, tool_bar_lines_needed): Move
prototypes to HAVE_WINDOW_SYSTEM-only part.
(get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
(null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
part.
dispnew.c (mirror_make_current): Set Y coordinate of the
mode-line and header-line rows.
(init_display): Setup initial frame's output_data for text
terminal frames.
xmenu.c (popup_activated): Don't define on MSDOS, which now has
its own definition on msdos.c.
msdos.c (show_mouse_face, clear_mouse_face)
(fast_find_position, IT_note_mode_line_highlight)
(IT_note_mouse_highlight): Functions deleted.
(IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
instead of IT_note_mouse_highlight.
(draw_row_with_mouse_face, popup_activated): New functions.
(dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
(IT_update_end, IT_frame_up_to_date, internal_terminal_init)
(dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
where mouse_face_* members were accessed for mouse highlight
purposes.
msdos.h (initialize_msdos_display): Add prototype.
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 (show_mouse_face, clear_mouse_face): Update type of
1st argument.
(frame_to_window_pixel_xy, note_mouse_highlight)
(x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
(show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
HAVE_WINDOW_SYSTEM conditional.
(draw_row_with_mouse_face): Declare prototype.
(tty_draw_row_with_mouse_face): Declare prototype.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 06 Nov 2010 10:28:31 +0200 |
parents | 1d1d5d9bd884 |
children | 376148b31b5e |
line wrap: on
line source
%!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 34 577 324 778 %%Title: chest-of-drawers-diagram-new %%CreationDate: Fri Sep 14 17:40:57 2001 %%Creator: Tgif-4.1.35 by William Chia-Wei Cheng (william@cs.UCLA.edu) %%ProducedBy: (unknown) %%Pages: 1 %%DocumentFonts: (atend) %%EndComments %%BeginProlog % Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 % Free Software Foundation, Inc. % % This file is part of GNU Emacs. % % GNU Emacs is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. % % GNU Emacs is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. /tgifdict 53 dict def tgifdict begin /tgifellipsedict 6 dict def tgifellipsedict /mtrx matrix put /TGEL % tgifellipse { tgifellipsedict begin /yrad exch def /xrad exch def /y exch def /x exch def /savematrix mtrx currentmatrix def x y translate xrad yrad scale 0 0 1 0 360 arc savematrix setmatrix end } def /TGMAX { exch dup 3 1 roll exch dup 3 1 roll gt { pop } { exch pop } ifelse } def /TGMIN { exch dup 3 1 roll exch dup 3 1 roll lt { pop } { exch pop } ifelse } def /TGSW { stringwidth pop } def /bd { bind def } bind def /GS { gsave } bd /GR { grestore } bd /NP { newpath } bd /CP { closepath } bd /CHP { charpath } bd /CT { curveto } bd /L { lineto } bd /RL { rlineto } bd /M { moveto } bd /RM { rmoveto } bd /S { stroke } bd /F { fill } bd /TR { translate } bd /RO { rotate } bd /SC { scale } bd /MU { mul } bd /DI { div } bd /DU { dup } bd /NE { neg } bd /AD { add } bd /SU { sub } bd /PO { pop } bd /EX { exch } bd /CO { concat } bd /CL { clip } bd /EC { eoclip } bd /EF { eofill } bd /IM { image } bd /IMM { imagemask } bd /ARY { array } bd /SG { setgray } bd /RG { setrgbcolor } bd /SD { setdash } bd /W { setlinewidth } bd /SM { setmiterlimit } bd /SLC { setlinecap } bd /SLJ { setlinejoin } bd /SH { show } bd /FF { findfont } bd /MS { makefont setfont } bd /AR { arcto 4 {pop} repeat } bd /CURP { currentpoint } bd /FLAT { flattenpath strokepath clip newpath } bd /TGSM { tgiforigctm setmatrix } def /TGRM { savematrix setmatrix } def end %%EndProlog %%Page: 1 1 %%PageBoundingBox: 34 577 324 778 tgifdict begin /tgifsavedpage save def 1 SM 1 W 0 SG 72 0 MU 72 11 MU TR 72 128 DI 100.000 MU 100 DI DU NE SC GS /tgiforigctm matrix currentmatrix def % BOX 0 SG GS 10 SM GS NP 64 104 M 255 104 L 255 360 L 64 360 L CP S GR GR % POLY/OPEN-SPLINE 0 SG GS NP 65 296 M 254 296 L TGSM 1 W S GR % POLY/OPEN-SPLINE 0 SG GS NP 63 233 M 255 233 L TGSM 1 W S GR % POLY/OPEN-SPLINE 0 SG GS NP 63 169 M 255 169 L TGSM 1 W S GR % POLY/OPEN-SPLINE 0 SG GS NP 251 362 M 251 361 L 251 379 L 244 379 L 229 361 L TGSM 1 W S GR % OVAL 0 SG GS GS NP 160 72 10 6 TGEL S GR GR % POLY/OPEN-SPLINE 0 SG GS NP 63 104 M 128 64 L 138 69 L TGSM 1 W S GR % POLY/OPEN-SPLINE 0 SG GS NP 255 103 M 190 63 L 180 68 L TGSM 1 W S GR % TEXT NP 0 SG GS 1 W 160 152 M GS GS 0 /Courier FF [17 0 0 -17 0 0] MS (symbol name) TGSW AD GR 2 DI NE 0 RM 0 SG /Courier FF [17 0 0 -17 0 0] MS (symbol name) SH GR GR % TEXT NP 0 SG GS 1 W 160 41 M GS GS 0 /Courier FF [17 0 0 -17 0 0] MS (Chest of Drawers) TGSW AD GR 2 DI NE 0 RM 0 SG /Courier FF [17 0 0 -17 0 0] MS (Chest of Drawers) SH GR GR % TEXT NP 0 SG GS 1 W 344 41 M GS 0 SG /Courier FF [17 0 0 -17 0 0] MS (Contents of Drawers) SH GR GR % TEXT NP 0 SG GS 1 W 344 160 M GS 0 SG /Courier FF [17 0 0 -17 0 0] MS (bouquet) SH GR GR % TEXT NP 0 SG GS 1 W 344 220 M GS 0 SG /Courier FF [17 0 0 -17 0 0] MS ([none]) SH GR GR % TEXT NP 0 SG GS 1 W 344 279 M GS 0 SG /Courier FF [17 0 0 -17 0 0] MS (\(rose violet buttercup\)) SH GR GR % TEXT NP 0 SG GS 1 W 344 337 M GS 0 SG /Courier FF [17 0 0 -17 0 0] MS ([not described here]) SH GR GR % POLY/OPEN-SPLINE 0 SG GS NP 68 362 M 68 361 L 68 379 L 75 379 L 90 361 L TGSM 1 W S GR % TEXT NP 0 SG GS 1 W 158 132 M GS GS 0 /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) TGSW AD GR 2 DI NE 0 RM 0 SG /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) SH GR GR % TEXT NP 0 SG GS 1 W 345 139 M GS 0 SG /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (map to) SH GR GR % TEXT NP 0 SG GS 1 W 350 259 M GS 0 SG /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (map to) SH GR GR % TEXT NP 0 SG GS 1 W 159 213 M GS GS 0 /Courier FF [17 0 0 -17 0 0] MS (symbol definition) TGSW AD GR 2 DI NE 0 RM 0 SG /Courier FF [17 0 0 -17 0 0] MS (symbol definition) SH GR GR % TEXT NP 0 SG GS 1 W 159 195 M GS GS 0 /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) TGSW AD GR 2 DI NE 0 RM 0 SG /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) SH GR GR % TEXT NP 0 SG GS 1 W 160 276 M GS GS 0 /Courier FF [17 0 0 -17 0 0] MS (variable name) TGSW AD GR 2 DI NE 0 RM 0 SG /Courier FF [17 0 0 -17 0 0] MS (variable name) SH GR GR % TEXT NP 0 SG GS 1 W 158 260 M GS GS 0 /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) TGSW AD GR 2 DI NE 0 RM 0 SG /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) SH GR GR % TEXT NP 0 SG GS 1 W 160 339 M GS GS 0 /Courier FF [17 0 0 -17 0 0] MS (property list) TGSW AD GR 2 DI NE 0 RM 0 SG /Courier FF [17 0 0 -17 0 0] MS (property list) SH GR GR % TEXT NP 0 SG GS 1 W 158 323 M GS GS 0 /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) TGSW AD GR 2 DI NE 0 RM 0 SG /NewCenturySchlbk-Roman FF [17 0 0 -17 0 0] MS (directions to) SH GR GR GR tgifsavedpage restore end showpage %%Trailer %MatchingCreationDate: Fri Sep 14 17:40:57 2001 %%DocumentFonts: NewCenturySchlbk-Roman %%+ Courier %%EOF