Mercurial > hg > xemacs-beta
comparison src/toolbar.h @ 286:57709be46d1b r21-0b41
Import from CVS: tag r21-0b41
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:35:03 +0200 |
parents | 90d73dddcdc4 |
children | e11d67e05968 |
comparison
equal
deleted
inserted
replaced
285:9a3756523c1b | 286:57709be46d1b |
---|---|
27 | 27 |
28 #include "specifier.h" | 28 #include "specifier.h" |
29 | 29 |
30 #ifdef HAVE_TOOLBARS | 30 #ifdef HAVE_TOOLBARS |
31 | 31 |
32 /* There are 4 of these per frame. They don't really need to be an | 32 #define FRAME_TOOLBAR_BUTTONS(frame, pos) \ |
33 lrecord (they're not lisp-accessible) but it makes marking slightly | 33 ((frame)->toolbar_buttons[pos]) |
34 more modular. */ | 34 #define FRAME_CURRENT_TOOLBAR_SIZE(frame, pos) \ |
35 struct toolbar_data | 35 ((frame)->current_toolbar_size[pos]) |
36 { | 36 #define DEVICE_SUPPORTS_TOOLBARS_P(d) \ |
37 struct lcrecord_header header; | 37 (HAS_DEVMETH_P ((d), output_frame_toolbars)) |
38 | |
39 /* The last buffer for which the toolbars were displayed. */ | |
40 Lisp_Object last_toolbar_buffer; | |
41 | |
42 /* The actual buttons are chained through this. */ | |
43 Lisp_Object toolbar_buttons; | |
44 }; | |
45 | |
46 DECLARE_LRECORD (toolbar_data, struct toolbar_data); | |
47 #define XTOOLBAR_DATA(x) XRECORD (x, toolbar_data, struct toolbar_data) | |
48 #define XSETTOOLBAR_DATA(x, p) XSETRECORD (x, p, toolbar_data) | |
49 #define TOOLBAR_DATAP(x) RECORDP (x, toolbar_data) | |
50 #define GC_TOOLBAR_DATAP(x) GC_RECORDP (x, toolbar_data) | |
51 #define CHECK_TOOLBAR_DATA(x) CHECK_RECORD (x, toolbar_data) | |
52 #define CONCHECK_TOOLBAR_DATA(x) CONCHECK_RECORD (x, toolbar_data) | |
53 | |
54 #define FRAME_TOOLBAR_DATA(frame, position) \ | |
55 (XTOOLBAR_DATA ((frame)->toolbar_data[position])) | |
56 #define FRAME_TOOLBAR_BUFFER(frame, position) \ | |
57 (XTOOLBAR_DATA ((frame)->toolbar_data[position])->last_toolbar_buffer) | |
58 | 38 |
59 /* These are chained together through toolbar_buttons in struct | 39 /* These are chained together through toolbar_buttons in struct |
60 toolbar_data. These don't need to be an lrecord either, but again, | 40 toolbar_data. These don't need to be an lrecord either, but again, |
61 it makes marking easier. */ | 41 it makes marking easier. */ |
62 struct toolbar_button | 42 struct toolbar_button |