comparison src/gutter.h @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 95016f13131a
children
comparison
equal deleted inserted replaced
423:28d9c139be4c 424:11054d720c21
38 #define DEFAULT_GUTTER_WIDTH 40 38 #define DEFAULT_GUTTER_WIDTH 40
39 #define DEFAULT_GUTTER_BORDER_WIDTH 2 39 #define DEFAULT_GUTTER_BORDER_WIDTH 2
40 40
41 enum gutter_pos 41 enum gutter_pos
42 { 42 {
43 TOP_GUTTER, 43 TOP_GUTTER = 0,
44 BOTTOM_GUTTER, 44 BOTTOM_GUTTER = 1,
45 LEFT_GUTTER, 45 LEFT_GUTTER = 2,
46 RIGHT_GUTTER 46 RIGHT_GUTTER = 3
47 }; 47 };
48
49 /* Iterate over all possible gutter positions */
50 #define GUTTER_POS_LOOP(var) \
51 for (var = (enum gutter_pos) 0; var < 4; var = (enum gutter_pos) (var + 1))
48 52
49 extern Lisp_Object Qgutter; 53 extern Lisp_Object Qgutter;
50 54
51 extern Lisp_Object Vgutter_size[4]; 55 extern Lisp_Object Vgutter_size[4];
52 extern Lisp_Object Vgutter_border_width[4]; 56 extern Lisp_Object Vgutter_border_width[4];
55 void init_device_gutters (struct device *d); 59 void init_device_gutters (struct device *d);
56 void init_global_gutters (struct device *d); 60 void init_global_gutters (struct device *d);
57 void free_frame_gutters (struct frame *f); 61 void free_frame_gutters (struct frame *f);
58 void redraw_exposed_gutters (struct frame *f, int x, int y, int width, 62 void redraw_exposed_gutters (struct frame *f, int x, int y, int width,
59 int height); 63 int height);
64 void reset_gutter_display_lines (struct frame* f);
60 65
61 #define WINDOW_GUTTER_BORDER_WIDTH(w, pos) \ 66 #define WINDOW_GUTTER_BORDER_WIDTH(w, pos) \
62 (NILP ((w)->gutter_border_width[pos]) ? 0 : XINT ((w)->gutter_border_width[pos])) 67 (NILP ((w)->gutter_border_width[pos]) ? 0 : XINT ((w)->gutter_border_width[pos]))
63 #define WINDOW_GUTTER_SIZE(w, pos) \ 68 #define WINDOW_GUTTER_SIZE(w, pos) \
64 (NILP ((w)->gutter_size[pos]) ? 0 : XINT ((w)->gutter_size[pos])) 69 (NILP ((w)->gutter_size[pos]) ? 0 : XINT ((w)->gutter_size[pos]))