diff options
| author | Dmitry Antipov | 2013-08-28 15:00:03 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-28 15:00:03 +0400 |
| commit | c3c4768d2becd1f84c598e1463d089c224e83ea2 (patch) | |
| tree | cc32475a4cf3f88f9740faa3a292d0905a18f8c7 /src/dispextern.h | |
| parent | c65a2df9e3629bfda99e0f7dcb736097e098a7be (diff) | |
| download | emacs-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.h | 18 |
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 | ||
| 757 | enum glyph_row_area | 757 | enum 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); | |||
| 3163 | void set_vertical_scroll_bar (struct window *); | 3164 | void set_vertical_scroll_bar (struct window *); |
| 3164 | #endif | 3165 | #endif |
| 3165 | int try_window (Lisp_Object, struct text_pos, int); | 3166 | int try_window (Lisp_Object, struct text_pos, int); |
| 3166 | void window_box (struct window *, int, int *, int *, int *, int *); | 3167 | void window_box (struct window *, enum glyph_row_area, |
| 3168 | int *, int *, int *, int *); | ||
| 3167 | int window_box_height (struct window *); | 3169 | int window_box_height (struct window *); |
| 3168 | int window_text_bottom_y (struct window *); | 3170 | int window_text_bottom_y (struct window *); |
| 3169 | int window_box_width (struct window *, int); | 3171 | int window_box_width (struct window *, enum glyph_row_area); |
| 3170 | int window_box_left (struct window *, int); | 3172 | int window_box_left (struct window *, enum glyph_row_area); |
| 3171 | int window_box_left_offset (struct window *, int); | 3173 | int window_box_left_offset (struct window *, enum glyph_row_area); |
| 3172 | int window_box_right (struct window *, int); | 3174 | int window_box_right (struct window *, enum glyph_row_area); |
| 3173 | int window_box_right_offset (struct window *, int); | 3175 | int window_box_right_offset (struct window *, enum glyph_row_area); |
| 3174 | int estimate_mode_line_height (struct frame *, enum face_id); | 3176 | int estimate_mode_line_height (struct frame *, enum face_id); |
| 3175 | void pixel_to_glyph_coords (struct frame *, int, int, int *, int *, | 3177 | void pixel_to_glyph_coords (struct frame *, int, int, int *, int *, |
| 3176 | NativeRectangle *, int); | 3178 | NativeRectangle *, int); |