Mercurial > emacs
annotate lwlib/xlwmenuP.h @ 36800:7a809e9fc67e
(x_draw_glyph_string): Draw relief (if any) before
drawing glyph string.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 14 Mar 2001 13:18:05 +0000 |
parents | bb36becbd66b |
children | 762469b26903 |
rev | line source |
---|---|
7359 | 1 #ifndef _XlwMenuP_h |
2 #define _XlwMenuP_h | |
3 | |
4 #include "xlwmenu.h" | |
5 #include <X11/CoreP.h> | |
6 | |
7 /* Elements in the stack arrays. */ | |
8 typedef struct _window_state | |
9 { | |
10 Window window; | |
11 Position x; | |
12 Position y; | |
13 Dimension width; | |
14 Dimension height; | |
15 Dimension label_width; | |
25033
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
16 |
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
17 /* Width of toggle buttons or radio buttons. */ |
584c34c7cf53
(_window_state): Add button_width.
Gerd Moellmann <gerd@gnu.org>
parents:
7360
diff
changeset
|
18 Dimension button_width; |
7359 | 19 } window_state; |
20 | |
21 | |
22 /* New fields for the XlwMenu widget instance record */ | |
23 typedef struct _XlwMenu_part | |
24 { | |
25 /* slots set by the resources */ | |
26 XFontStruct* font; | |
7360 | 27 Pixel foreground; |
7359 | 28 Pixel button_foreground; |
29 Dimension margin; | |
30 Dimension horizontal_spacing; | |
31 Dimension vertical_spacing; | |
32 Dimension arrow_spacing; | |
33 Dimension shadow_thickness; | |
34 Pixel top_shadow_color; | |
35 Pixel bottom_shadow_color; | |
36 Pixmap top_shadow_pixmap; | |
37 Pixmap bottom_shadow_pixmap; | |
7360 | 38 Cursor cursor_shape; |
7359 | 39 XtCallbackList open; |
27340
1d84a7873d7c
(_XlwMenu_part): Add `highlight' callback list.
Gerd Moellmann <gerd@gnu.org>
parents:
25033
diff
changeset
|
40 XtCallbackList select, highlight; |
7359 | 41 widget_value* contents; |
42 int horizontal; | |
29699
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
43 |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
44 /* True means top_shadow_color and/or bottom_shadow_color must be freed. */ |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
45 unsigned free_top_shadow_color_p : 1; |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
46 unsigned free_bottom_shadow_color_p : 1; |
7359 | 47 |
48 /* State of the XlwMenu */ | |
49 int old_depth; | |
50 widget_value** old_stack; | |
51 int old_stack_length; | |
52 | |
53 /* New state after the user moved */ | |
54 int new_depth; | |
55 widget_value** new_stack; | |
56 int new_stack_length; | |
57 | |
58 /* Window resources */ | |
59 window_state* windows; | |
60 int windows_length; | |
61 | |
62 /* Internal part, set by the XlwMenu */ | |
63 GC foreground_gc; | |
64 GC button_gc; | |
65 GC background_gc; | |
66 GC inactive_gc; | |
67 GC inactive_button_gc; | |
68 GC shadow_top_gc; | |
69 GC shadow_bottom_gc; | |
70 Cursor cursor; | |
71 Boolean popped_up; | |
72 Pixmap gray_pixmap; | |
73 } XlwMenuPart; | |
74 | |
75 /* Full instance record declaration */ | |
76 typedef struct _XlwMenuRec | |
77 { | |
78 CorePart core; | |
79 XlwMenuPart menu; | |
80 } XlwMenuRec; | |
81 | |
82 /* New fields for the XlwMenu widget class record */ | |
83 typedef struct | |
84 { | |
85 int dummy; | |
86 } XlwMenuClassPart; | |
87 | |
88 /* Full class record declaration. */ | |
89 typedef struct _XlwMenuClassRec | |
90 { | |
91 CoreClassPart core_class; | |
92 XlwMenuClassPart menu_class; | |
93 } XlwMenuClassRec; | |
94 | |
95 /* Class pointer. */ | |
96 extern XlwMenuClassRec xlwMenuClassRec; | |
97 | |
98 #endif /* _XlwMenuP_h */ |