Mercurial > emacs
annotate lwlib/xlwmenuP.h @ 51724:10665ce5f760
(struct Lisp_Float): Remove unused field `type'.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 04 Jul 2003 20:19:55 +0000 |
parents | 762469b26903 |
children | 695cf19ef79e d7ddb3e565de |
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 */ | |
45145
762469b26903
(_XlwMenu_part): Add new member `disabled_foreground'.
Pavel Janík <Pavel@Janik.cz>
parents:
29699
diff
changeset
|
23 typedef struct _XlwMenu_part |
7359 | 24 { |
25 /* slots set by the resources */ | |
26 XFontStruct* font; | |
7360 | 27 Pixel foreground; |
45145
762469b26903
(_XlwMenu_part): Add new member `disabled_foreground'.
Pavel Janík <Pavel@Janik.cz>
parents:
29699
diff
changeset
|
28 Pixel disabled_foreground; |
7359 | 29 Pixel button_foreground; |
30 Dimension margin; | |
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; | |
7360 | 39 Cursor cursor_shape; |
7359 | 40 XtCallbackList open; |
27340
1d84a7873d7c
(_XlwMenu_part): Add `highlight' callback list.
Gerd Moellmann <gerd@gnu.org>
parents:
25033
diff
changeset
|
41 XtCallbackList select, highlight; |
7359 | 42 widget_value* contents; |
43 int horizontal; | |
29699
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
44 |
bb36becbd66b
(_XlwMenu_part): Add free_top_shadow_color_p and
Gerd Moellmann <gerd@gnu.org>
parents:
27340
diff
changeset
|
45 /* 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
|
46 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
|
47 unsigned free_bottom_shadow_color_p : 1; |
45145
762469b26903
(_XlwMenu_part): Add new member `disabled_foreground'.
Pavel Janík <Pavel@Janik.cz>
parents:
29699
diff
changeset
|
48 |
7359 | 49 /* State of the XlwMenu */ |
50 int old_depth; | |
51 widget_value** old_stack; | |
52 int old_stack_length; | |
53 | |
54 /* New state after the user moved */ | |
55 int new_depth; | |
56 widget_value** new_stack; | |
57 int new_stack_length; | |
58 | |
59 /* Window resources */ | |
60 window_state* windows; | |
61 int windows_length; | |
62 | |
63 /* Internal part, set by the XlwMenu */ | |
64 GC foreground_gc; | |
65 GC button_gc; | |
66 GC background_gc; | |
45145
762469b26903
(_XlwMenu_part): Add new member `disabled_foreground'.
Pavel Janík <Pavel@Janik.cz>
parents:
29699
diff
changeset
|
67 GC disabled_gc; |
7359 | 68 GC inactive_button_gc; |
69 GC shadow_top_gc; | |
70 GC shadow_bottom_gc; | |
71 Cursor cursor; | |
72 Boolean popped_up; | |
73 Pixmap gray_pixmap; | |
74 } XlwMenuPart; | |
75 | |
76 /* Full instance record declaration */ | |
45145
762469b26903
(_XlwMenu_part): Add new member `disabled_foreground'.
Pavel Janík <Pavel@Janik.cz>
parents:
29699
diff
changeset
|
77 typedef struct _XlwMenuRec |
7359 | 78 { |
79 CorePart core; | |
80 XlwMenuPart menu; | |
81 } XlwMenuRec; | |
82 | |
83 /* New fields for the XlwMenu widget class record */ | |
45145
762469b26903
(_XlwMenu_part): Add new member `disabled_foreground'.
Pavel Janík <Pavel@Janik.cz>
parents:
29699
diff
changeset
|
84 typedef struct |
7359 | 85 { |
86 int dummy; | |
87 } XlwMenuClassPart; | |
88 | |
89 /* Full class record declaration. */ | |
45145
762469b26903
(_XlwMenu_part): Add new member `disabled_foreground'.
Pavel Janík <Pavel@Janik.cz>
parents:
29699
diff
changeset
|
90 typedef struct _XlwMenuClassRec |
7359 | 91 { |
92 CoreClassPart core_class; | |
93 XlwMenuClassPart menu_class; | |
94 } XlwMenuClassRec; | |
95 | |
96 /* Class pointer. */ | |
97 extern XlwMenuClassRec xlwMenuClassRec; | |
98 | |
99 #endif /* _XlwMenuP_h */ |