7 /* Elements in the stack arrays. */
8 typedef struct _window_state
15 Dimension label_width
;
17 /* Width of toggle buttons or radio buttons. */
18 Dimension button_width
;
22 /* New fields for the XlwMenu widget instance record */
23 typedef struct _XlwMenu_part
25 /* slots set by the resources */
28 Pixel disabled_foreground
;
29 Pixel button_foreground
;
31 Dimension horizontal_spacing
;
32 Dimension vertical_spacing
;
33 Dimension arrow_spacing
;
34 Dimension shadow_thickness
;
35 Pixel top_shadow_color
;
36 Pixel bottom_shadow_color
;
37 Pixmap top_shadow_pixmap
;
38 Pixmap bottom_shadow_pixmap
;
41 XtCallbackList select
, highlight
;
42 widget_value
* contents
;
45 /* True means top_shadow_color and/or bottom_shadow_color must be freed. */
46 unsigned free_top_shadow_color_p
: 1;
47 unsigned free_bottom_shadow_color_p
: 1;
49 /* State of the XlwMenu */
51 widget_value
** old_stack
;
54 /* New state after the user moved */
56 widget_value
** new_stack
;
59 /* Window resources */
60 window_state
* windows
;
63 /* Internal part, set by the XlwMenu */
68 GC inactive_button_gc
;
76 /* Full instance record declaration */
77 typedef struct _XlwMenuRec
83 /* New fields for the XlwMenu widget class record */
89 /* Full class record declaration. */
90 typedef struct _XlwMenuClassRec
92 CoreClassPart core_class
;
93 XlwMenuClassPart menu_class
;
97 extern XlwMenuClassRec xlwMenuClassRec
;
99 #endif /* _XlwMenuP_h */