aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32gui.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/w32gui.h b/src/w32gui.h
index e712aa30873..c738f9b8d46 100644
--- a/src/w32gui.h
+++ b/src/w32gui.h
@@ -33,6 +33,66 @@ typedef struct _XCharStruct
33 short descent; 33 short descent;
34} XCharStruct; 34} XCharStruct;
35 35
36/* Emulate widget_value from ../lwlib/lwlib.h, modified for Windows. */
37typedef void * XtPointer;
38typedef char Boolean;
39enum button_type
40{
41 BUTTON_TYPE_NONE,
42 BUTTON_TYPE_TOGGLE,
43 BUTTON_TYPE_RADIO
44};
45typedef struct _widget_value
46{
47 /* name of widget */
48 Lisp_Object lname;
49 char* name;
50 /* value (meaning depend on widget type) */
51 char* value;
52 /* keyboard equivalent. no implications for XtTranslations */
53 Lisp_Object lkey;
54 char* key;
55 /* Help string or nil if none.
56 GC finds this string through the frame's menu_bar_vector
57 or through menu_items. */
58 Lisp_Object help;
59 /* true if enabled */
60 Boolean enabled;
61 /* true if selected */
62 Boolean selected;
63 /* The type of a button. */
64 enum button_type button_type;
65 /* true if menu title */
66 Boolean title;
67#if 0
68 /* true if was edited (maintained by get_value) */
69 Boolean edited;
70 /* true if has changed (maintained by lw library) */
71 change_type change;
72 /* true if this widget itself has changed,
73 but not counting the other widgets found in the `next' field. */
74 change_type this_one_change;
75#endif
76 /* Contents of the sub-widgets, also selected slot for checkbox */
77 struct _widget_value* contents;
78 /* data passed to callback */
79 XtPointer call_data;
80 /* next one in the list */
81 struct _widget_value* next;
82#if 0
83 /* slot for the toolkit dependent part. Always initialize to NULL. */
84 void* toolkit_data;
85 /* tell us if we should free the toolkit data slot when freeing the
86 widget_value itself. */
87 Boolean free_toolkit_data;
88
89 /* we resource the widget_value structures; this points to the next
90 one on the free list if this one has been deallocated.
91 */
92 struct _widget_value *free_list;
93#endif
94} widget_value;
95
36enum w32_char_font_type 96enum w32_char_font_type
37{ 97{
38 UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */, 98 UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */,