1 #ifndef INCLUDED_lwlib_internal_h_
2 #define INCLUDED_lwlib_internal_h_
6 /* This represents a single widget within a widget tree. All the
7 widgets in a widget tree are chained through the `next' field.
8 `info' is a back pointer to the widget tree. */
10 typedef struct _widget_instance
15 struct _widget_info* info;
16 struct _widget_instance* next;
19 /* This represents a single widget tree, such as a single menubar.
20 The global variable `all_widget_info' lists all widget trees,
21 chained through the `next' field of this structure. */
23 typedef struct _widget_info
30 lw_callback pre_activate_cb;
31 lw_callback selection_cb;
32 lw_callback post_activate_cb;
33 struct _widget_instance* instances;
34 struct _widget_info* next;
38 (*widget_creation_function) (widget_instance* instance);
40 typedef struct _widget_creation_entry
43 widget_creation_function function;
44 } widget_creation_entry;
46 /* update all other instances of a widget. Can be used in a callback when
47 a widget has been used by the user */
49 lw_internal_update_other_instances (Widget widget, XtPointer closure,
52 /* get the widget_value for a widget in a given instance */
54 lw_get_widget_value_for_widget (widget_instance* instance, Widget w);
56 widget_info *lw_get_widget_info (LWLIB_ID id);
58 #endif /* INCLUDED_lwlib_internal_h_ */