Mercurial > hg > xemacs-beta
comparison src/toolbar.h @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 8626e4521993 |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
21 Boston, MA 02111-1307, USA. */ | 21 Boston, MA 02111-1307, USA. */ |
22 | 22 |
23 /* Synched up with: Not in FSF. */ | 23 /* Synched up with: Not in FSF. */ |
24 | 24 |
25 #ifndef _XEMACS_TOOLBAR_H_ | 25 #ifndef INCLUDED_toolbar_h_ |
26 #define _XEMACS_TOOLBAR_H_ | 26 #define INCLUDED_toolbar_h_ |
27 | 27 |
28 #ifdef HAVE_TOOLBARS | 28 #ifdef HAVE_TOOLBARS |
29 | 29 |
30 #include "specifier.h" | 30 #include "specifier.h" |
31 | 31 |
32 #define FRAME_TOOLBAR_BUTTONS(frame, pos) \ | 32 #define FRAME_TOOLBAR_BUTTONS(frame, pos) \ |
33 ((frame)->toolbar_buttons[pos]) | 33 ((frame)->toolbar_buttons[pos]) |
34 #define FRAME_CURRENT_TOOLBAR_SIZE(frame, pos) \ | 34 #define FRAME_CURRENT_TOOLBAR_SIZE(frame, pos) \ |
35 ((frame)->current_toolbar_size[pos]) | 35 ((frame)->current_toolbar_size[pos]) |
36 #define DEVICE_SUPPORTS_TOOLBARS_P(d) \ | 36 #define DEVICE_SUPPORTS_TOOLBARS_P(d) \ |
37 (HAS_DEVMETH_P ((d), output_frame_toolbars)) | 37 HAS_DEVMETH_P (d, output_frame_toolbars) |
38 | 38 |
39 struct toolbar_button | 39 struct toolbar_button |
40 { | 40 { |
41 struct lcrecord_header header; | 41 struct lcrecord_header header; |
42 | 42 |
71 | 71 |
72 DECLARE_LRECORD (toolbar_button, struct toolbar_button); | 72 DECLARE_LRECORD (toolbar_button, struct toolbar_button); |
73 #define XTOOLBAR_BUTTON(x) XRECORD (x, toolbar_button, struct toolbar_button) | 73 #define XTOOLBAR_BUTTON(x) XRECORD (x, toolbar_button, struct toolbar_button) |
74 #define XSETTOOLBAR_BUTTON(x, p) XSETRECORD (x, p, toolbar_button) | 74 #define XSETTOOLBAR_BUTTON(x, p) XSETRECORD (x, p, toolbar_button) |
75 #define TOOLBAR_BUTTONP(x) RECORDP (x, toolbar_button) | 75 #define TOOLBAR_BUTTONP(x) RECORDP (x, toolbar_button) |
76 #define GC_TOOLBAR_BUTTONP(x) GC_RECORDP (x, toolbar_button) | |
77 #define CHECK_TOOLBAR_BUTTON(x) CHECK_RECORD (x, toolbar_button) | 76 #define CHECK_TOOLBAR_BUTTON(x) CHECK_RECORD (x, toolbar_button) |
78 #define CONCHECK_TOOLBAR_BUTTON(x) CONCHECK_RECORD (x, toolbar_button) | 77 #define CONCHECK_TOOLBAR_BUTTON(x) CONCHECK_RECORD (x, toolbar_button) |
79 | 78 |
80 void get_toolbar_coords (struct frame *f, enum toolbar_pos pos, int *x, | 79 void get_toolbar_coords (struct frame *f, enum toolbar_pos pos, int *x, |
81 int *y, int *width, int *height, int *vert, | 80 int *y, int *width, int *height, int *vert, |
109 struct toolbar_button *tb); | 108 struct toolbar_button *tb); |
110 void mark_frame_toolbar_buttons_dirty (struct frame *f, enum toolbar_pos pos); | 109 void mark_frame_toolbar_buttons_dirty (struct frame *f, enum toolbar_pos pos); |
111 | 110 |
112 #endif /* HAVE_TOOLBARS */ | 111 #endif /* HAVE_TOOLBARS */ |
113 | 112 |
114 #endif /* _XEMACS_TOOLBAR_H_ */ | 113 #endif /* INCLUDED_toolbar_h_ */ |