diff options
| author | Gerd Moellmann | 1999-07-21 21:43:52 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-07-21 21:43:52 +0000 |
| commit | cedccd2efa892887439e13957d451fc2d84be883 (patch) | |
| tree | d12a4918ebbeee00508ec356f77551aeb6ec5583 /lwlib | |
| parent | be06a3dffa944d10c576e299afa086048437bd0b (diff) | |
| download | emacs-cedccd2efa892887439e13957d451fc2d84be883.tar.gz emacs-cedccd2efa892887439e13957d451fc2d84be883.zip | |
(enum menu_separator): New.
(enum button_type): New.
(_widget_value): New member button_type.
Diffstat (limited to 'lwlib')
| -rw-r--r-- | lwlib/lwlib.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lwlib/lwlib.h b/lwlib/lwlib.h index 6bf26fe23c4..663f7fd73be 100644 --- a/lwlib/lwlib.h +++ b/lwlib/lwlib.h | |||
| @@ -32,6 +32,35 @@ typedef enum _change_type | |||
| 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 */ |
| @@ -46,6 +75,8 @@ typedef struct _widget_value | |||
| 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, |
| @@ -119,4 +150,12 @@ 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 */ |