comparison src/toolbar.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 74fd4e045ea6
children 11054d720c21
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
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 INCLUDED_toolbar_h_ 25 #ifndef _XEMACS_TOOLBAR_H_
26 #define INCLUDED_toolbar_h_ 26 #define _XEMACS_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)
76 #define CHECK_TOOLBAR_BUTTON(x) CHECK_RECORD (x, toolbar_button) 77 #define CHECK_TOOLBAR_BUTTON(x) CHECK_RECORD (x, toolbar_button)
77 #define CONCHECK_TOOLBAR_BUTTON(x) CONCHECK_RECORD (x, toolbar_button) 78 #define CONCHECK_TOOLBAR_BUTTON(x) CONCHECK_RECORD (x, toolbar_button)
78 79
79 void get_toolbar_coords (struct frame *f, enum toolbar_pos pos, int *x, 80 void get_toolbar_coords (struct frame *f, enum toolbar_pos pos, int *x,
80 int *y, int *width, int *height, int *vert, 81 int *y, int *width, int *height, int *vert,
108 struct toolbar_button *tb); 109 struct toolbar_button *tb);
109 void mark_frame_toolbar_buttons_dirty (struct frame *f, enum toolbar_pos pos); 110 void mark_frame_toolbar_buttons_dirty (struct frame *f, enum toolbar_pos pos);
110 111
111 #endif /* HAVE_TOOLBARS */ 112 #endif /* HAVE_TOOLBARS */
112 113
113 #endif /* INCLUDED_toolbar_h_ */ 114 #endif /* _XEMACS_TOOLBAR_H_ */