comparison lwlib/lwlib.h @ 444:576fb035e263 r21-2-37

Import from CVS: tag r21-2-37
author cvs
date Mon, 13 Aug 2007 11:36:19 +0200
parents abe6d1db359e
children 98528da0b7fc
comparison
equal deleted inserted replaced
443:a8296e22da4e 444:576fb035e263
102 /* some things are only possible at creation time. args are applied 102 /* some things are only possible at creation time. args are applied
103 to widgets at creation time. */ 103 to widgets at creation time. */
104 ArgList args; 104 ArgList args;
105 int nargs; 105 int nargs;
106 /* Copying args is impossible so we make the caller give us heap allocated 106 /* Copying args is impossible so we make the caller give us heap allocated
107 args and free them when on-one wants them any more. */ 107 args and free them when no one wants them any more. */
108 int ref_count; 108 int ref_count;
109 } widget_args; 109 } widget_args;
110 110
111 typedef struct _widget_value 111 typedef struct _widget_value
112 { 112 {
113 /* This slot is only partially utilized right now. */ 113 /* This slot is only partially utilized right now. */
114 widget_value_type type; 114 widget_value_type type;
115 115
116 /* name of widget */ 116 /* name of widget */
117 char* name; 117 char* name;
118 /* value (meaning BOGUSLY depend on widget type) */ 118 /* value (meaning BOGUSLY depends on widget type) */
119 char* value; 119 char* value;
120 /* keyboard equivalent. no implications for XtTranslations */ 120 /* keyboard equivalent. no implications for XtTranslations */
121 char* key; 121 char* key;
122 /* accelerator key. For XEmacs, this should be a Lisp_Object holding a 122 /* accelerator key. For XEmacs, this should be a Lisp_Object holding a
123 char or symbol suitable for passing to event_matches_key_specifier_p. 123 char or symbol suitable for passing to event_matches_key_specifier_p.
132 Boolean selected; 132 Boolean selected;
133 /* true if was edited (maintained by get_value) */ 133 /* true if was edited (maintained by get_value) */
134 Boolean edited; 134 Boolean edited;
135 /* true if has changed (maintained by lw library) */ 135 /* true if has changed (maintained by lw library) */
136 change_type change; 136 change_type change;
137 /* Contents of the sub-widgets, also selected slot for checkbox */ 137 /* Contents of sub-widgets, also selected slot for checkbox */
138 struct _widget_value* contents; 138 struct _widget_value* contents;
139 /* data passed to callback */ 139 /* data passed to callback */
140 XtPointer call_data; 140 XtPointer call_data;
141 /* next one in the list */ 141 /* next in the list of siblings */
142 struct _widget_value* next; 142 struct _widget_value* next;
143 /* slot for the toolkit dependent part. Always initialize to NULL. */ 143 /* slot for the toolkit dependent part. Always initialize to NULL. */
144 void* toolkit_data; 144 void* toolkit_data;
145 /* tell us if we should free the toolkit data slot when freeing the 145 /* tell us if we should free the toolkit data slot when freeing the
146 widget_value itself. */ 146 widget_value itself. */