Mercurial > hg > xemacs-beta
comparison src/gui.h @ 406:b8cc9ab3f761 r21-2-33
Import from CVS: tag r21-2-33
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:17:09 +0200 |
parents | 74fd4e045ea6 |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
405:0e08f63c74d2 | 406:b8cc9ab3f761 |
---|---|
41 struct Lisp_Gui_Item | 41 struct Lisp_Gui_Item |
42 { | 42 { |
43 struct lcrecord_header header; | 43 struct lcrecord_header header; |
44 Lisp_Object name; /* String */ | 44 Lisp_Object name; /* String */ |
45 Lisp_Object callback; /* Symbol or form */ | 45 Lisp_Object callback; /* Symbol or form */ |
46 Lisp_Object callback_ex; /* Form taking context arguments */ | |
46 Lisp_Object suffix; /* String */ | 47 Lisp_Object suffix; /* String */ |
47 Lisp_Object active; /* Form */ | 48 Lisp_Object active; /* Form */ |
48 Lisp_Object included; /* Form */ | 49 Lisp_Object included; /* Form */ |
49 Lisp_Object config; /* Anything EQable */ | 50 Lisp_Object config; /* Anything EQable */ |
50 Lisp_Object filter; /* Form */ | 51 Lisp_Object filter; /* Form */ |
51 Lisp_Object style; /* Symbol */ | 52 Lisp_Object style; /* Symbol */ |
52 Lisp_Object selected; /* Form */ | 53 Lisp_Object selected; /* Form */ |
53 Lisp_Object keys; /* String */ | 54 Lisp_Object keys; /* String */ |
54 Lisp_Object accelerator; /* Char or Symbol */ | 55 Lisp_Object accelerator; /* Char or Symbol */ |
56 Lisp_Object value; /* Anything you like */ | |
55 }; | 57 }; |
56 | 58 |
57 DECLARE_LRECORD (gui_item, Lisp_Gui_Item); | 59 DECLARE_LRECORD (gui_item, Lisp_Gui_Item); |
58 #define XGUI_ITEM(x) XRECORD (x, gui_item, Lisp_Gui_Item) | 60 #define XGUI_ITEM(x) XRECORD (x, gui_item, Lisp_Gui_Item) |
59 #define XSETGUI_ITEM(x, p) XSETRECORD (x, p, gui_item) | 61 #define XSETGUI_ITEM(x, p) XSETRECORD (x, p, gui_item) |
61 #define CHECK_GUI_ITEM(x) CHECK_RECORD (x, gui_item) | 63 #define CHECK_GUI_ITEM(x) CHECK_RECORD (x, gui_item) |
62 #define CONCHECK_GUI_ITEM(x) CONCHECK_RECORD (x, gui_item) | 64 #define CONCHECK_GUI_ITEM(x) CONCHECK_RECORD (x, gui_item) |
63 | 65 |
64 extern Lisp_Object Q_accelerator, Q_active, Q_config, Q_filter, Q_included; | 66 extern Lisp_Object Q_accelerator, Q_active, Q_config, Q_filter, Q_included; |
65 extern Lisp_Object Q_keys, Q_selected, Q_suffix, Qradio, Qtoggle; | 67 extern Lisp_Object Q_keys, Q_selected, Q_suffix, Qradio, Qtoggle; |
66 extern Lisp_Object Q_key_sequence, Q_label, Q_callback; | 68 extern Lisp_Object Q_key_sequence, Q_label, Q_callback, Q_callback_ex, Q_value; |
67 | 69 |
68 void gui_item_add_keyval_pair (Lisp_Object, | 70 void gui_item_add_keyval_pair (Lisp_Object, |
69 Lisp_Object key, Lisp_Object val, | 71 Lisp_Object key, Lisp_Object val, |
70 Error_behavior errb); | 72 Error_behavior errb); |
71 Lisp_Object gui_parse_item_keywords (Lisp_Object item); | 73 Lisp_Object gui_parse_item_keywords (Lisp_Object item); |
83 char* buf, Bytecount buf_len); | 85 char* buf, Bytecount buf_len); |
84 | 86 |
85 Lisp_Object allocate_gui_item (void); | 87 Lisp_Object allocate_gui_item (void); |
86 void gui_item_init (Lisp_Object gui_item); | 88 void gui_item_init (Lisp_Object gui_item); |
87 Lisp_Object parse_gui_item_tree_children (Lisp_Object list); | 89 Lisp_Object parse_gui_item_tree_children (Lisp_Object list); |
90 Lisp_Object copy_gui_item_tree (Lisp_Object arg); | |
88 | 91 |
89 /* this is mswindows biased but reasonably safe I think */ | 92 /* this is mswindows biased but reasonably safe I think */ |
90 #define GUI_ITEM_ID_SLOTS 8 | 93 #define GUI_ITEM_ID_SLOTS 8 |
91 #define GUI_ITEM_ID_MIN(s) (s * 0x2000) | 94 #define GUI_ITEM_ID_MIN(s) (s * 0x2000) |
92 #define GUI_ITEM_ID_MAX(s) (0x1FFF + GUI_ITEM_ID_MIN (s)) | 95 #define GUI_ITEM_ID_MAX(s) (0x1FFF + GUI_ITEM_ID_MIN (s)) |