aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorDmitry Antipov2013-08-28 15:00:03 +0400
committerDmitry Antipov2013-08-28 15:00:03 +0400
commitc3c4768d2becd1f84c598e1463d089c224e83ea2 (patch)
treecc32475a4cf3f88f9740faa3a292d0905a18f8c7 /src/dispextern.h
parentc65a2df9e3629bfda99e0f7dcb736097e098a7be (diff)
downloademacs-c3c4768d2becd1f84c598e1463d089c224e83ea2.tar.gz
emacs-c3c4768d2becd1f84c598e1463d089c224e83ea2.zip
Prefer enum glyph_row_area to int where appropriate.
* dispextern.h (enum glyph_row_area): Add ANY_AREA member. Fix comment. (window_box, window_box_width, window_box_left, window_box_left_offset) (window_box_right, window_box_right_offset): Adjust prototypes. * xdisp.c (window_box, window_box_width, window_box_left) (window_box_left_offset, window_box_right, window_box_right_offset): Use enum glyph_row_area. Adjust users and tweak comment where needed. (window_box_edges): Likewise. Lost 2nd arg since it is always ANY_AREA. * nsterm.m (ns_clip_to_row): * w32term.c (w32_clip_to_row): * xterm.c (x_clip_to_row): Likewise.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 2d44dca3861..b327250a88a 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -751,11 +751,12 @@ void check_matrix_pointer_lossage (struct glyph_matrix *);
751 Glyph Rows 751 Glyph Rows
752 ***********************************************************************/ 752 ***********************************************************************/
753 753
754/* Area in window glyph matrix. If values are added or removed, the 754/* Area in window glyph matrix. If values are added or removed,
755 function mark_object in alloc.c has to be changed. */ 755 the function mark_glyph_matrix in alloc.c may need to be changed. */
756 756
757enum glyph_row_area 757enum glyph_row_area
758{ 758{
759 ANY_AREA = -1,
759 LEFT_MARGIN_AREA, 760 LEFT_MARGIN_AREA,
760 TEXT_AREA, 761 TEXT_AREA,
761 RIGHT_MARGIN_AREA, 762 RIGHT_MARGIN_AREA,
@@ -3163,14 +3164,15 @@ int resize_mini_window (struct window *, int);
3163void set_vertical_scroll_bar (struct window *); 3164void set_vertical_scroll_bar (struct window *);
3164#endif 3165#endif
3165int try_window (Lisp_Object, struct text_pos, int); 3166int try_window (Lisp_Object, struct text_pos, int);
3166void window_box (struct window *, int, int *, int *, int *, int *); 3167void window_box (struct window *, enum glyph_row_area,
3168 int *, int *, int *, int *);
3167int window_box_height (struct window *); 3169int window_box_height (struct window *);
3168int window_text_bottom_y (struct window *); 3170int window_text_bottom_y (struct window *);
3169int window_box_width (struct window *, int); 3171int window_box_width (struct window *, enum glyph_row_area);
3170int window_box_left (struct window *, int); 3172int window_box_left (struct window *, enum glyph_row_area);
3171int window_box_left_offset (struct window *, int); 3173int window_box_left_offset (struct window *, enum glyph_row_area);
3172int window_box_right (struct window *, int); 3174int window_box_right (struct window *, enum glyph_row_area);
3173int window_box_right_offset (struct window *, int); 3175int window_box_right_offset (struct window *, enum glyph_row_area);
3174int estimate_mode_line_height (struct frame *, enum face_id); 3176int estimate_mode_line_height (struct frame *, enum face_id);
3175void pixel_to_glyph_coords (struct frame *, int, int, int *, int *, 3177void pixel_to_glyph_coords (struct frame *, int, int, int *, int *,
3176 NativeRectangle *, int); 3178 NativeRectangle *, int);