Mercurial > emacs
comparison src/w32gui.h @ 95710:33605d8c9e6d
(widget_value, XtPointer, Boolean, enum button_type): Define here.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Mon, 09 Jun 2008 12:36:01 +0000 |
parents | 29adfc9354e7 |
children | 37802c533470 |
comparison
equal
deleted
inserted
replaced
95709:2d395f0b0295 | 95710:33605d8c9e6d |
---|---|
30 short lbearing; | 30 short lbearing; |
31 short width; | 31 short width; |
32 short ascent; | 32 short ascent; |
33 short descent; | 33 short descent; |
34 } XCharStruct; | 34 } XCharStruct; |
35 | |
36 /* Emulate widget_value from ../lwlib/lwlib.h, modified for Windows. */ | |
37 typedef void * XtPointer; | |
38 typedef char Boolean; | |
39 enum button_type | |
40 { | |
41 BUTTON_TYPE_NONE, | |
42 BUTTON_TYPE_TOGGLE, | |
43 BUTTON_TYPE_RADIO | |
44 }; | |
45 typedef 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; | |
35 | 95 |
36 enum w32_char_font_type | 96 enum w32_char_font_type |
37 { | 97 { |
38 UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */, | 98 UNKNOWN_FONT = 0 /* FONT_TYPE_UNKNOWN */, |
39 ANSI_FONT, | 99 ANSI_FONT, |