comparison src/ChangeLog @ 53337:59bc3f594f55

Fix cursor glyph height on tall rows. Add image map feature. Add pointer text property.
author Kim F. Storm <storm@cua.dk>
date Sun, 28 Dec 2003 00:15:01 +0000
parents 990c58ec131c
children 9e21566a15df
comparison
equal deleted inserted replaced
53336:9a1b69cfa7be 53337:59bc3f594f55
1 2003-12-28 Kim F. Storm <storm@cua.dk>
2
3 * Makefile.in (eval.o): Depend on dispextern.h.
4
5 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6 image glyph using image's ascent.
7 (mode_line_string): Return image glyph as object clicked on.
8 Adjust y0 for image glyph using image's ascent.
9
10 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
11 (struct glyph): New members, ascent and descent. Used to save
12 this glyph's ascent and descent, instead of having.
13 (struct glyph): Declare member face_id using FACE_ID_BITS.
14 (find_hot_spot): Add prototype.
15
16 * keyboard.c (Qimage): Remove extern (now in lisp.h).
17 (QCmap): Declare extern.
18 (make_lispy_position): When position is inside image hot-spot,
19 use hot-spot element's id as posn element.
20
21 * lisp.h (IMAGEP): New macro to test for image object type.
22 (Qimage): Declare extern.
23
24 * macfns.c (Qimage): Remove extern (now in lisp.h).
25 (valid_image_p, parse_image_spec): Use IMAGEP macro.
26
27 * macterm.c (Qface, Qmouse_face): Remove unused externs.
28
29 * w32fns.c (Qimage): Remove extern (now in lisp.h).
30 (valid_image_p, parse_image_spec): Use IMAGEP macro.
31
32 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
33
34 * w32term.c (Qface, Qmouse_face): Remove unused externs.
35
36 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
37 pointer types.
38 (Qrelative_width, Qalign_to): Remove unused variables.
39 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
40 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
41 image maps.
42 (x_y_to_hpos_vpos): Return glyph relative coordinates through
43 new dx and dy args.
44 Remove buffer_only_p arg (always 0). Simplify code accordingly.
45 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
46 than row's ascent and height, to get sensible height on tall rows.
47 (build_desired_tool_bar_string): Remove Qimage extern.
48 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
49 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
50 image glyph is alone on the last line.
51 (append_glyph, append_composite_glyph, produce_image_glyph)
52 (append_stretch_glyph): Set glyph's ascent and descent.
53 (on_hot_spot_p): New function to check if position is inside an
54 rectangular, circular, or polygon-shaped image hot-spot,
55 (find_hot_spot): New function to search for image hot-spot.
56 (Flookup_image_map): New defun to search for image hot-spot.
57 (define_frame_cursor1): New aux function to determine frame pointer.
58 (note_mode_line_or_margin_highlight, note_mouse_highlight):
59 Handle `pointer' text property and :pointer image property to
60 control frame pointer shape. Detect image hot-spots for pointer
61 and help_echo properties. Use define_frame_cursor1.
62 (note_mouse_highlight): Use Vvoid_text_area_pointer.
63 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
64 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
65
66 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
67
68 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
69 (Qimage): Remove extern (now in lisp.h).
70 (valid_image_p, parse_image_spec): Use IMAGEP macro.
71
72 * xmenu.c (show_help_event): Remove unused code.
73
74 * xterm.c (Qface, Qmouse_face): Remove unused externs.
75 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
76 row's ascent and descent, to get a sensible height on tall rows.
77
1 2003-12-25 Luc Teirlinck <teirllm@auburn.edu> 78 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
2 79
3 * minibuf.c (Fcompleting_read): Undo previous change. 80 * minibuf.c (Fcompleting_read): Undo previous change.
4 81
5 2003-12-25 Lars Hansen <larsh@math.ku.dk> 82 2003-12-25 Lars Hansen <larsh@math.ku.dk>