comparison src/toolbar.h @ 215:1f0dabaa0855 r20-4b6

Import from CVS: tag r20-4b6
author cvs
date Mon, 13 Aug 2007 10:07:35 +0200
parents e45d5e7c476e
children c5d627a313b1
comparison
equal deleted inserted replaced
214:c5d88c05e1e9 215:1f0dabaa0855
84 char blank; 84 char blank;
85 85
86 int x, y; 86 int x, y;
87 int width, height; 87 int width, height;
88 int dirty; 88 int dirty;
89 /* is this button in a left or right toolbar? */
90 int vertical;
91 /* border_width when this button was layed out */
92 int border_width;
89 }; 93 };
90 94
91 DECLARE_LRECORD (toolbar_button, struct toolbar_button); 95 DECLARE_LRECORD (toolbar_button, struct toolbar_button);
92 #define XTOOLBAR_BUTTON(x) XRECORD (x, toolbar_button, struct toolbar_button) 96 #define XTOOLBAR_BUTTON(x) XRECORD (x, toolbar_button, struct toolbar_button)
93 #define XSETTOOLBAR_BUTTON(x, p) XSETRECORD (x, p, toolbar_button) 97 #define XSETTOOLBAR_BUTTON(x, p) XSETRECORD (x, p, toolbar_button)
109 #define CONCHECK_TOOLBAR_SPECIFIER(x) CONCHECK_SPECIFIER_TYPE (x, toolbar) 113 #define CONCHECK_TOOLBAR_SPECIFIER(x) CONCHECK_SPECIFIER_TYPE (x, toolbar)
110 114
111 #define DEFAULT_TOOLBAR_HEIGHT 37 115 #define DEFAULT_TOOLBAR_HEIGHT 37
112 #define DEFAULT_TOOLBAR_WIDTH 40 116 #define DEFAULT_TOOLBAR_WIDTH 40
113 #define DEFAULT_TOOLBAR_BLANK_SIZE 8 117 #define DEFAULT_TOOLBAR_BLANK_SIZE 8
118 #define DEFAULT_TOOLBAR_BORDER_WIDTH 0
114 #define MINIMUM_SHADOW_THICKNESS 1 119 #define MINIMUM_SHADOW_THICKNESS 1
115 120
116 extern Lisp_Object Vtoolbar_size[4]; 121 extern Lisp_Object Vtoolbar_size[4];
122 extern Lisp_Object Vtoolbar_border_width[4];
117 void update_frame_toolbars (struct frame *f); 123 void update_frame_toolbars (struct frame *f);
118 void init_frame_toolbars (struct frame *f); 124 void init_frame_toolbars (struct frame *f);
119 void init_device_toolbars (struct device *d); 125 void init_device_toolbars (struct device *d);
120 void init_global_toolbars (struct device *d); 126 void init_global_toolbars (struct device *d);
121 void free_frame_toolbars (struct frame *f); 127 void free_frame_toolbars (struct frame *f);
122 Lisp_Object get_toolbar_button_glyph (struct window *w, 128 Lisp_Object get_toolbar_button_glyph (struct window *w,
123 struct toolbar_button *tb); 129 struct toolbar_button *tb);
130 void mark_frame_toolbar_buttons_dirty (struct frame *f, enum toolbar_pos pos);
124 131
125 #endif /* HAVE_TOOLBARS */ 132 #endif /* HAVE_TOOLBARS */
126 133
127 #endif /* _XEMACS_TOOLBAR_H_ */ 134 #endif /* _XEMACS_TOOLBAR_H_ */