20 |
|
|
21 |
|
|
22 |
/* New fields for the XlwMenu widget instance record */ |
/* New fields for the XlwMenu widget instance record */ |
23 |
typedef struct _XlwMenu_part |
typedef struct _XlwMenu_part |
24 |
{ |
{ |
25 |
/* slots set by the resources */ |
/* slots set by the resources */ |
26 |
XFontStruct* font; |
XFontStruct* font; |
27 |
Pixel foreground; |
Pixel foreground; |
28 |
|
Pixel disabled_foreground; |
29 |
Pixel button_foreground; |
Pixel button_foreground; |
30 |
Dimension margin; |
Dimension margin; |
31 |
Dimension horizontal_spacing; |
Dimension horizontal_spacing; |
45 |
/* True means top_shadow_color and/or bottom_shadow_color must be freed. */ |
/* True means top_shadow_color and/or bottom_shadow_color must be freed. */ |
46 |
unsigned free_top_shadow_color_p : 1; |
unsigned free_top_shadow_color_p : 1; |
47 |
unsigned free_bottom_shadow_color_p : 1; |
unsigned free_bottom_shadow_color_p : 1; |
48 |
|
|
49 |
/* State of the XlwMenu */ |
/* State of the XlwMenu */ |
50 |
int old_depth; |
int old_depth; |
51 |
widget_value** old_stack; |
widget_value** old_stack; |
64 |
GC foreground_gc; |
GC foreground_gc; |
65 |
GC button_gc; |
GC button_gc; |
66 |
GC background_gc; |
GC background_gc; |
67 |
GC inactive_gc; |
GC disabled_gc; |
68 |
GC inactive_button_gc; |
GC inactive_button_gc; |
69 |
GC shadow_top_gc; |
GC shadow_top_gc; |
70 |
GC shadow_bottom_gc; |
GC shadow_bottom_gc; |
74 |
} XlwMenuPart; |
} XlwMenuPart; |
75 |
|
|
76 |
/* Full instance record declaration */ |
/* Full instance record declaration */ |
77 |
typedef struct _XlwMenuRec |
typedef struct _XlwMenuRec |
78 |
{ |
{ |
79 |
CorePart core; |
CorePart core; |
80 |
XlwMenuPart menu; |
XlwMenuPart menu; |
81 |
} XlwMenuRec; |
} XlwMenuRec; |
82 |
|
|
83 |
/* New fields for the XlwMenu widget class record */ |
/* New fields for the XlwMenu widget class record */ |
84 |
typedef struct |
typedef struct |
85 |
{ |
{ |
86 |
int dummy; |
int dummy; |
87 |
} XlwMenuClassPart; |
} XlwMenuClassPart; |
88 |
|
|
89 |
/* Full class record declaration. */ |
/* Full class record declaration. */ |
90 |
typedef struct _XlwMenuClassRec |
typedef struct _XlwMenuClassRec |
91 |
{ |
{ |
92 |
CoreClassPart core_class; |
CoreClassPart core_class; |
93 |
XlwMenuClassPart menu_class; |
XlwMenuClassPart menu_class; |