aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-28 09:45:38 +0400
committerDmitry Antipov2013-08-28 09:45:38 +0400
commitf60e429a1a1a0d6a51761ef12e54dde52967f085 (patch)
tree83be6ff103b71cb7b59fa171b631437f0c6720c7 /src/dispextern.h
parent0acfedd3496a4a375c27215d13bf63466fdb1071 (diff)
downloademacs-f60e429a1a1a0d6a51761ef12e54dde52967f085.tar.gz
emacs-f60e429a1a1a0d6a51761ef12e54dde52967f085.zip
Redesign redisplay interface to drop global output_cursor.
* dispextern.h (struct redisplay_interface): Remove cursor_to member. (toplevel): Remove declaration of output_cursor. (set_output_cursor, x_cursor_to): Remove prototype. * window.h (struct window): New member output_cursor. (output_cursor_to): New function to replace RIF member. * dispnew.c (redraw_overlapped_rows, update_marginal_area) (update_text_area, set_window_cursor_after_update): Use it. * xdisp.c (output_cursor, set_output_cursor, x_cursor_to): Remove. (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line): * nsterm.m (ns_update_window_begin, ns_update_window_end): * w32term.c (x_update_window_begin, x_update_window_end): * xterm.c (x_update_window_begin, x_update_window_end): Adjust to use per-window output cursor.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index a5cb66f7d5e..2d44dca3861 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -2790,11 +2790,6 @@ struct redisplay_interface
2790 void (*update_window_end_hook) (struct window *w, bool cursor_on_p, 2790 void (*update_window_end_hook) (struct window *w, bool cursor_on_p,
2791 bool mouse_face_overwritten_p); 2791 bool mouse_face_overwritten_p);
2792 2792
2793 /* Move cursor to row/column position VPOS/HPOS, pixel coordinates
2794 Y/X. HPOS/VPOS are window-relative row and column numbers and X/Y
2795 are window-relative pixel positions. */
2796 void (*cursor_to) (struct window *w, int vpos, int hpos, int y, int x);
2797
2798 /* Flush the display of frame F. For X, this is XFlush. */ 2793 /* Flush the display of frame F. For X, this is XFlush. */
2799 void (*flush_display) (struct frame *f); 2794 void (*flush_display) (struct frame *f);
2800 2795
@@ -3232,9 +3227,6 @@ extern void x_insert_glyphs (struct window *, struct glyph_row *,
3232 struct glyph *, enum glyph_row_area, int); 3227 struct glyph *, enum glyph_row_area, int);
3233extern void x_clear_end_of_line (struct window *, struct glyph_row *, 3228extern void x_clear_end_of_line (struct window *, struct glyph_row *,
3234 enum glyph_row_area, int); 3229 enum glyph_row_area, int);
3235
3236extern struct cursor_pos output_cursor;
3237
3238extern void x_fix_overlapping_area (struct window *, struct glyph_row *, 3230extern void x_fix_overlapping_area (struct window *, struct glyph_row *,
3239 enum glyph_row_area, int); 3231 enum glyph_row_area, int);
3240extern void draw_phys_cursor_glyph (struct window *, 3232extern void draw_phys_cursor_glyph (struct window *,
@@ -3244,10 +3236,6 @@ extern void get_phys_cursor_geometry (struct window *, struct glyph_row *,
3244 struct glyph *, int *, int *, int *); 3236 struct glyph *, int *, int *, int *);
3245extern void erase_phys_cursor (struct window *); 3237extern void erase_phys_cursor (struct window *);
3246extern void display_and_set_cursor (struct window *, bool, int, int, int, int); 3238extern void display_and_set_cursor (struct window *, bool, int, int, int, int);
3247
3248extern void set_output_cursor (struct cursor_pos *);
3249extern void x_cursor_to (struct window *, int, int, int, int);
3250
3251extern void x_update_cursor (struct frame *, bool); 3239extern void x_update_cursor (struct frame *, bool);
3252extern void x_clear_cursor (struct window *); 3240extern void x_clear_cursor (struct window *);
3253extern void x_draw_vertical_border (struct window *w); 3241extern void x_draw_vertical_border (struct window *w);