Mercurial > hg > xemacs-beta
comparison src/gui.h @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | a5df635868b2 |
children | abe6d1db359e |
comparison
equal
deleted
inserted
replaced
439:357dd071b03c | 440:8de8e3f6228a |
---|---|
22 | 22 |
23 /* Synched up with: Not in FSF. */ | 23 /* Synched up with: Not in FSF. */ |
24 | 24 |
25 /* Written by kkm on 12/24/97 */ | 25 /* Written by kkm on 12/24/97 */ |
26 | 26 |
27 #ifndef _XEMACS_GUI_H_ | 27 #ifndef INCLUDED_gui_h_ |
28 #define _XEMACS_GUI_H_ | 28 #define INCLUDED_gui_h_ |
29 | 29 |
30 int separator_string_p (CONST char *s); | 30 int separator_string_p (CONST char *s); |
31 void get_gui_callback (Lisp_Object, Lisp_Object *, Lisp_Object *); | 31 void get_gui_callback (Lisp_Object, Lisp_Object *, Lisp_Object *); |
32 | 32 |
33 extern int popup_up_p; | 33 extern int popup_up_p; |
34 | 34 |
35 /************************************************************************/ | 35 /************************************************************************/ |
36 /* Image Instance Object */ | 36 /* Image Instance Object */ |
37 /************************************************************************/ | 37 /************************************************************************/ |
38 | |
39 DECLARE_LRECORD (gui_item, struct Lisp_Gui_Item); | |
40 #define XGUI_ITEM(x) \ | |
41 XRECORD (x, gui_item, struct Lisp_Gui_Item) | |
42 #define XSETGUI_ITEM(x, p) XSETRECORD (x, p, gui_item) | |
43 #define GUI_ITEMP(x) RECORDP (x, gui_item) | |
44 #define CHECK_GUI_ITEM(x) CHECK_RECORD (x, gui_item) | |
45 #define CONCHECK_GUI_ITEM(x) CONCHECK_RECORD (x, gui_item) | |
46 | 38 |
47 /* This structure describes gui button, | 39 /* This structure describes gui button, |
48 menu item or submenu properties */ | 40 menu item or submenu properties */ |
49 struct Lisp_Gui_Item | 41 struct Lisp_Gui_Item |
50 { | 42 { |
59 Lisp_Object style; /* Symbol */ | 51 Lisp_Object style; /* Symbol */ |
60 Lisp_Object selected; /* Form */ | 52 Lisp_Object selected; /* Form */ |
61 Lisp_Object keys; /* String */ | 53 Lisp_Object keys; /* String */ |
62 Lisp_Object accelerator; /* Char or Symbol */ | 54 Lisp_Object accelerator; /* Char or Symbol */ |
63 }; | 55 }; |
56 | |
57 DECLARE_LRECORD (gui_item, Lisp_Gui_Item); | |
58 #define XGUI_ITEM(x) XRECORD (x, gui_item, Lisp_Gui_Item) | |
59 #define XSETGUI_ITEM(x, p) XSETRECORD (x, p, gui_item) | |
60 #define GUI_ITEMP(x) RECORDP (x, gui_item) | |
61 #define CHECK_GUI_ITEM(x) CHECK_RECORD (x, gui_item) | |
62 #define CONCHECK_GUI_ITEM(x) CONCHECK_RECORD (x, gui_item) | |
64 | 63 |
65 extern Lisp_Object Q_accelerator, Q_active, Q_config, Q_filter, Q_included; | 64 extern Lisp_Object Q_accelerator, Q_active, Q_config, Q_filter, Q_included; |
66 extern Lisp_Object Q_keys, Q_selected, Q_suffix, Qradio, Qtoggle; | 65 extern Lisp_Object Q_keys, Q_selected, Q_suffix, Qradio, Qtoggle; |
67 extern Lisp_Object Q_key_sequence, Q_label, Q_callback; | 66 extern Lisp_Object Q_key_sequence, Q_label, Q_callback; |
68 | 67 |
93 #define GUI_ITEM_ID_MAX(s) (0x1FFF + GUI_ITEM_ID_MIN (s)) | 92 #define GUI_ITEM_ID_MAX(s) (0x1FFF + GUI_ITEM_ID_MIN (s)) |
94 #define GUI_ITEM_ID_BITS(x,s) (((x) & 0x1FFF) + GUI_ITEM_ID_MIN (s)) | 93 #define GUI_ITEM_ID_BITS(x,s) (((x) & 0x1FFF) + GUI_ITEM_ID_MIN (s)) |
95 | 94 |
96 #define MAX_MENUITEM_LENGTH 128 | 95 #define MAX_MENUITEM_LENGTH 128 |
97 | 96 |
98 #endif /* _XEMACS_GUI_H_ */ | 97 #endif /* INCLUDED_gui_h_ */ |