Mercurial > emacs
comparison lwlib/lwlib.h @ 25035:d8d30f76cc61
(enum menu_separator): New.
(enum button_type): New.
(_widget_value): New member button_type.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 21 Jul 1999 21:43:52 +0000 |
parents | de5c3eda52fc |
children | d895d4e8a6f0 |
comparison
equal
deleted
inserted
replaced
25034:305d2ac394ae | 25035:d8d30f76cc61 |
---|---|
30 INVISIBLE_CHANGE = 1, | 30 INVISIBLE_CHANGE = 1, |
31 VISIBLE_CHANGE = 2, | 31 VISIBLE_CHANGE = 2, |
32 STRUCTURAL_CHANGE = 3 | 32 STRUCTURAL_CHANGE = 3 |
33 } change_type; | 33 } change_type; |
34 | 34 |
35 enum button_type | |
36 { | |
37 BUTTON_TYPE_NONE, | |
38 BUTTON_TYPE_TOGGLE, | |
39 BUTTON_TYPE_RADIO | |
40 }; | |
41 | |
42 /* Menu separator types. */ | |
43 | |
44 enum menu_separator | |
45 { | |
46 /* These values are Motif compatible. */ | |
47 SEPARATOR_NO_LINE, | |
48 SEPARATOR_SINGLE_LINE, | |
49 SEPARATOR_DOUBLE_LINE, | |
50 SEPARATOR_SINGLE_DASHED_LINE, | |
51 SEPARATOR_DOUBLE_DASHED_LINE, | |
52 SEPARATOR_SHADOW_ETCHED_IN, | |
53 SEPARATOR_SHADOW_ETCHED_OUT, | |
54 SEPARATOR_SHADOW_ETCHED_IN_DASH, | |
55 SEPARATOR_SHADOW_ETCHED_OUT_DASH, | |
56 | |
57 /* The following are supported by XEmacs' Lucid menus. */ | |
58 SEPARATOR_SHADOW_DOUBLE_ETCHED_IN, | |
59 SEPARATOR_SHADOW_DOUBLE_ETCHED_OUT, | |
60 SEPARATOR_SHADOW_DOUBLE_ETCHED_IN_DASH, | |
61 SEPARATOR_SHADOW_DOUBLE_ETCHED_OUT_DASH | |
62 }; | |
63 | |
35 typedef struct _widget_value | 64 typedef struct _widget_value |
36 { | 65 { |
37 /* name of widget */ | 66 /* name of widget */ |
38 char* name; | 67 char* name; |
39 /* value (meaning depend on widget type) */ | 68 /* value (meaning depend on widget type) */ |
44 Boolean enabled; | 73 Boolean enabled; |
45 /* true if selected */ | 74 /* true if selected */ |
46 Boolean selected; | 75 Boolean selected; |
47 /* true if was edited (maintained by get_value) */ | 76 /* true if was edited (maintained by get_value) */ |
48 Boolean edited; | 77 Boolean edited; |
78 /* The type of a button. */ | |
79 enum button_type button_type; | |
49 /* true if has changed (maintained by lw library) */ | 80 /* true if has changed (maintained by lw library) */ |
50 change_type change; | 81 change_type change; |
51 /* true if this widget itself has changed, | 82 /* true if this widget itself has changed, |
52 but not counting the other widgets found in the `next' field. */ | 83 but not counting the other widgets found in the `next' field. */ |
53 change_type this_one_change; | 84 change_type this_one_change; |
117 /* Set up the main window. */ | 148 /* Set up the main window. */ |
118 void lw_set_main_areas (/* Widget parent, | 149 void lw_set_main_areas (/* Widget parent, |
119 Widget menubar, | 150 Widget menubar, |
120 Widget work_area */); | 151 Widget work_area */); |
121 | 152 |
153 /* Value is non-zero if LABEL is a menu separator. If it is, *TYPE is | |
154 set to an appropriate enumerator of type enum menu_separator. | |
155 MOTIF_P non-zero means map separator types not supported by Motif | |
156 to similar ones that are supported. */ | |
157 | |
158 int lw_separator_p (/* char *label, enum menu_separator *type, | |
159 int motif_p */); | |
160 | |
122 #endif /* LWLIB_H */ | 161 #endif /* LWLIB_H */ |