Mercurial > hg > xemacs-beta
comparison lwlib/lwlib.h @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | a4f53d9b3154 |
children | 1f50e6fe4f3f |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
1 #ifndef LWLIB_H | 1 #ifndef LWLIB_H |
2 #define LWLIB_H | 2 #define LWLIB_H |
3 | 3 |
4 #undef CONST | |
5 | |
6 #include <X11/Intrinsic.h> | 4 #include <X11/Intrinsic.h> |
7 | |
8 /* To eliminate use of `const' in the lwlib sources, define CONST_IS_LOSING. */ | |
9 #ifdef CONST_IS_LOSING | |
10 # define CONST | |
11 #else | |
12 # define CONST const | |
13 #endif | |
14 | 5 |
15 #if defined (LWLIB_MENUBARS_LUCID) || defined (LWLIB_MENUBARS_MOTIF) || defined (LWLIB_MENUBARS_ATHENA) | 6 #if defined (LWLIB_MENUBARS_LUCID) || defined (LWLIB_MENUBARS_MOTIF) || defined (LWLIB_MENUBARS_ATHENA) |
16 #define NEED_MENUBARS | 7 #define NEED_MENUBARS |
17 #endif | 8 #endif |
18 #if defined (LWLIB_SCROLLBARS_LUCID) || defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_ATHENA) | 9 #if defined (LWLIB_SCROLLBARS_LUCID) || defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_ATHENA) |
111 /* This slot is only partially utilized right now. */ | 102 /* This slot is only partially utilized right now. */ |
112 widget_value_type type; | 103 widget_value_type type; |
113 | 104 |
114 /* name of widget */ | 105 /* name of widget */ |
115 char* name; | 106 char* name; |
116 /* value (meaning BOGUSLY depends on widget type) */ | 107 /* value (meaning BOGUSLY depend on widget type) */ |
117 char* value; | 108 char* value; |
118 /* keyboard equivalent. no implications for XtTranslations */ | 109 /* keyboard equivalent. no implications for XtTranslations */ |
119 char* key; | 110 char* key; |
120 /* accelerator key. For XEmacs, this should be a Lisp_Object holding a | 111 /* accelerator key. For XEmacs, this should be a Lisp_Object holding a |
121 char or symbol suitable for passing to event_matches_key_specifier_p. | 112 char or symbol suitable for passing to event_matches_key_specifier_p. |
130 Boolean selected; | 121 Boolean selected; |
131 /* true if was edited (maintained by get_value) */ | 122 /* true if was edited (maintained by get_value) */ |
132 Boolean edited; | 123 Boolean edited; |
133 /* true if has changed (maintained by lw library) */ | 124 /* true if has changed (maintained by lw library) */ |
134 change_type change; | 125 change_type change; |
135 /* Contents of sub-widgets, also selected slot for checkbox */ | 126 /* Contents of the sub-widgets, also selected slot for checkbox */ |
136 struct _widget_value* contents; | 127 struct _widget_value* contents; |
137 /* data passed to callback */ | 128 /* data passed to callback */ |
138 XtPointer call_data; | 129 XtPointer call_data; |
139 /* next in the list of siblings */ | 130 /* next one in the list */ |
140 struct _widget_value* next; | 131 struct _widget_value* next; |
141 /* slot for the toolkit dependent part. Always initialize to NULL. */ | 132 /* slot for the toolkit dependent part. Always initialize to NULL. */ |
142 void* toolkit_data; | 133 void* toolkit_data; |
143 /* tell us if we should free the toolkit data slot when freeing the | 134 /* tell us if we should free the toolkit data slot when freeing the |
144 widget_value itself. */ | 135 widget_value itself. */ |