Mercurial > hg > xemacs-beta
comparison src/gutter.h @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | 1ccc32a20af4 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
52 extern Lisp_Object Qgutter; | 52 extern Lisp_Object Qgutter; |
53 | 53 |
54 extern Lisp_Object Vgutter_size[4]; | 54 extern Lisp_Object Vgutter_size[4]; |
55 extern Lisp_Object Vgutter_border_width[4]; | 55 extern Lisp_Object Vgutter_border_width[4]; |
56 void update_frame_gutters (struct frame *f); | 56 void update_frame_gutters (struct frame *f); |
57 void update_frame_gutter_geometry (struct frame *f); | |
58 void mark_gutters (struct frame* f); | |
57 void init_frame_gutters (struct frame *f); | 59 void init_frame_gutters (struct frame *f); |
58 void init_device_gutters (struct device *d); | 60 void init_device_gutters (struct device *d); |
59 void init_global_gutters (struct device *d); | 61 void init_global_gutters (struct device *d); |
60 void free_frame_gutters (struct frame *f); | 62 void free_frame_gutters (struct frame *f); |
61 void redraw_exposed_gutters (struct frame *f, int x, int y, int width, | 63 void redraw_exposed_gutters (struct frame *f, int x, int y, int width, |
62 int height); | 64 int height); |
63 void reset_gutter_display_lines (struct frame* f); | 65 void reset_gutter_display_lines (struct frame* f); |
66 void gutter_extent_signal_changed_region_maybe (Lisp_Object obj, | |
67 Bufpos start, Bufpos end); | |
64 | 68 |
65 #define WINDOW_GUTTER_BORDER_WIDTH(w, pos) \ | 69 #define WINDOW_GUTTER_BORDER_WIDTH(w, pos) \ |
66 (NILP ((w)->gutter_border_width[pos]) ? 0 : XINT ((w)->gutter_border_width[pos])) | 70 (INTP ((w)->gutter_border_width[pos]) ? XINT ((w)->gutter_border_width[pos]) : 0) |
67 #define WINDOW_GUTTER_SIZE(w, pos) \ | 71 #define WINDOW_GUTTER_SIZE(w, pos) \ |
68 (NILP ((w)->gutter_size[pos]) ? 0 : XINT ((w)->gutter_size[pos])) | 72 (INTP ((w)->gutter_size[pos]) ? XINT ((w)->gutter_size[pos]) : 0) |
69 #define WINDOW_GUTTER_SIZE_INTERNAL(w, pos) \ | 73 #define WINDOW_GUTTER_SIZE_INTERNAL(w, pos) \ |
70 (NILP ((w)->real_gutter_size[pos]) ? 0 : XINT ((w)->real_gutter_size[pos])) | 74 (INTP ((w)->real_gutter_size[pos]) ? XINT ((w)->real_gutter_size[pos]) : 0) |
71 #define WINDOW_GUTTER_VISIBLE(w, pos) \ | 75 #define WINDOW_GUTTER_VISIBLE(w, pos) \ |
72 ((w)->gutter_visible_p[pos]) | 76 ((w)->gutter_visible_p[pos]) |
73 #define WINDOW_GUTTER(w, pos) \ | 77 #define WINDOW_GUTTER(w, pos) \ |
74 ((w)->gutter[pos]) | 78 ((w)->real_gutter[pos]) |
79 #define RAW_WINDOW_GUTTER(w, pos) \ | |
80 ((w)->gutter[pos]) | |
75 | 81 |
76 #define WINDOW_REAL_GUTTER_SIZE(w, pos) \ | 82 #define WINDOW_REAL_GUTTER_SIZE(w, pos) \ |
77 (!NILP (WINDOW_GUTTER_VISIBLE (w, pos)) \ | 83 (!NILP (WINDOW_GUTTER_VISIBLE (w, pos)) \ |
78 ? WINDOW_GUTTER_SIZE_INTERNAL (w, pos) \ | 84 ? WINDOW_GUTTER_SIZE_INTERNAL (w, pos) \ |
79 : 0) | 85 : 0) |
88 (WINDOW_REAL_GUTTER_SIZE (f,pos) + \ | 94 (WINDOW_REAL_GUTTER_SIZE (f,pos) + \ |
89 2 * WINDOW_REAL_GUTTER_BORDER_WIDTH (f,pos)) | 95 2 * WINDOW_REAL_GUTTER_BORDER_WIDTH (f,pos)) |
90 | 96 |
91 /* these macros predicate size on position and type of window */ | 97 /* these macros predicate size on position and type of window */ |
92 #define WINDOW_REAL_TOP_GUTTER_BOUNDS(w) \ | 98 #define WINDOW_REAL_TOP_GUTTER_BOUNDS(w) \ |
93 ((!MINI_WINDOW_P (w) && window_is_highest (w)) ? \ | 99 WINDOW_REAL_GUTTER_BOUNDS (w,TOP_GUTTER) |
94 WINDOW_REAL_GUTTER_BOUNDS (w,TOP_GUTTER) : 0) | |
95 #define WINDOW_REAL_BOTTOM_GUTTER_BOUNDS(w) \ | 100 #define WINDOW_REAL_BOTTOM_GUTTER_BOUNDS(w) \ |
96 ((!MINI_WINDOW_P (w) && window_is_lowest (w)) ? \ | 101 WINDOW_REAL_GUTTER_BOUNDS (w,BOTTOM_GUTTER) |
97 WINDOW_REAL_GUTTER_BOUNDS (w,BOTTOM_GUTTER) : 0) | |
98 #define WINDOW_REAL_LEFT_GUTTER_BOUNDS(w) \ | 102 #define WINDOW_REAL_LEFT_GUTTER_BOUNDS(w) \ |
99 ((!MINI_WINDOW_P (w) && window_is_leftmost (w)) ? \ | 103 WINDOW_REAL_GUTTER_BOUNDS (w,LEFT_GUTTER) |
100 WINDOW_REAL_GUTTER_BOUNDS (w,LEFT_GUTTER) : 0) | |
101 #define WINDOW_REAL_RIGHT_GUTTER_BOUNDS(w) \ | 104 #define WINDOW_REAL_RIGHT_GUTTER_BOUNDS(w) \ |
102 ((!MINI_WINDOW_P (w) && window_is_rightmost (w)) ? \ | 105 WINDOW_REAL_GUTTER_BOUNDS (w,RIGHT_GUTTER) |
103 WINDOW_REAL_GUTTER_BOUNDS (w,RIGHT_GUTTER) : 0) | |
104 | 106 |
105 #define FRAME_GUTTER_VISIBLE(f, pos) \ | 107 #define FRAME_GUTTER_VISIBLE(f, pos) \ |
106 WINDOW_REAL_GUTTER_VISIBLE (XWINDOW (FRAME_LAST_NONMINIBUF_WINDOW (f)), pos) | 108 WINDOW_REAL_GUTTER_VISIBLE (XWINDOW (FRAME_LAST_NONMINIBUF_WINDOW (f)), pos) |
107 #define FRAME_GUTTER_SIZE(f, pos) \ | 109 #define FRAME_GUTTER_SIZE(f, pos) \ |
108 WINDOW_REAL_GUTTER_SIZE (XWINDOW (FRAME_LAST_NONMINIBUF_WINDOW (f)), pos) | 110 WINDOW_REAL_GUTTER_SIZE (XWINDOW (FRAME_LAST_NONMINIBUF_WINDOW (f)), pos) |