comparison src/ChangeLog @ 55019:1d1cf16185df

Add image slices.
author Kim F. Storm <storm@cua.dk>
date Tue, 20 Apr 2004 22:15:41 +0000
parents 38ad006eedb2
children 413a22a92995
comparison
equal deleted inserted replaced
55018:4f12dee543dc 55019:1d1cf16185df
1 2004-04-21 Kim F. Storm <storm@cua.dk>
2
3 * dispextern.h (struct glyph_slice): New struct.
4 (struct glyph): New member slice.
5 (GLYPH_SLICE_EQUAL_P): New macro.
6 (GLYPH_EQUAL_P): Use it.
7 (struct glyph_string): New member slice.
8 (struct it_slice): New struct.
9 (struct it): New member slice, add member to stack too.
10 New member constrain_row_ascent_descent_p.
11 (image_ascent): Add prototype.
12
13 * dispnew.c (buffer_posn_from_coords): Return full image width
14 and height even for image slices (posn is relative to full image).
15 (marginal_area_string): Adjust x0,y0 for image slice.
16
17 * image.c (image_ascent): Add slice arg; calculate ascent for
18 image slice (or full image).
19
20 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
21 (syms_of_keyboard): Defsubr them.
22
23 * lisp.h (pos_visible_p): Fix prototype.
24
25 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
26 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
27 (x_draw_image_foreground, x_draw_image_relief)
28 (x_draw_image_foreground_1, x_draw_image_glyph_string):
29 Draw sliced images.
30
31 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
32 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
33 (x_draw_image_foreground, x_draw_image_relief)
34 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
35 Draw sliced images.
36
37 * w32term.h (image_ascent): Remove prototype.
38
39 * window.c (Fpos_visible_in_window_p): Return pixel position if
40 PARTIALLY arg is non-nil. Simplify. Doc fix.
41 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
42 to return/set vscroll in pixels.
43
44 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
45
46 * xdisp.c (Qslice): New variable.
47 (syms_of_xdisp): Intern and staticpro it.
48 (pos_visible_p): Return pixel position in new x and y args.
49 (init_iterator): Reset it->slice info.
50 (handle_display_prop): Parse (slice ...) property.
51 (push_it, pop_it): Save/restore slice info.
52 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
53 force repositioning of tall row if window is vscrolled, as that
54 would reset vscroll.
55 (append_space): Set it->constrain_row_ascent_descent_p to avoid
56 increasing row height if row is non-empty.
57 (fill_image_glyph_string): Copy slice info.
58 (take_vertical_position_into_account): Simplify.
59 (produce_image_glyph): Handle iterator slice info, setup glyph
60 slice info. Do not force minimum line height.
61 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
62 do not increase height (ascent/descent) of non-empty row when
63 adding normal character glyph; instead reduce glyph ascent/descent
64 appropriately; if row is higher than current glyph, adjust glyph
65 descent/ascent to reposition glyph within the existing row.
66 Likewise, when char is newline, only set ascent/descent if row is
67 currently empty.
68 (note_mouse_highlight): Handle hotspots with sliced image.
69
70 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
71 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
72 (x_draw_image_foreground, x_draw_image_relief)
73 (x_draw_image_foreground_1, x_draw_image_glyph_string):
74 Draw sliced images.
75
76 * xterm.h (image_ascent): Remove prototype.
77
1 2004-04-20 John Paul Wallington <jpw@gnu.org> 78 2004-04-20 John Paul Wallington <jpw@gnu.org>
2 79
3 * fns.c (Fassoc, Feql): Fix indentation. 80 * fns.c (Fassoc, Feql): Fix indentation.
4 81
5 * fontset.c (regularize_fontname): Renamed from regulalize_fontname. 82 * fontset.c (regularize_fontname): Renamed from regulalize_fontname.