Sync to HEAD
[bpt/emacs.git] / lwlib / lwlib-int.h
CommitLineData
07bf635f
RS
1#ifndef LWLIB_INTERNAL_H
2#define LWLIB_INTERNAL_H
3
4#include "lwlib.h"
5
99570665 6extern char *safe_strdup __P ((const char *));
07bf635f
RS
7
8typedef struct _widget_instance
9{
10 Widget widget;
11 Widget parent;
12 Boolean pop_up_p;
13 struct _widget_info* info;
14 struct _widget_instance* next;
15} widget_instance;
16
17typedef struct _widget_info
18{
19 char* type;
20 char* name;
21 LWLIB_ID id;
22 widget_value* val;
23 Boolean busy;
24 lw_callback pre_activate_cb;
25 lw_callback selection_cb;
26 lw_callback post_activate_cb;
98f7f0d7 27 lw_callback highlight_cb;
07bf635f
RS
28 struct _widget_instance* instances;
29 struct _widget_info* next;
30} widget_info;
31
32typedef Widget
01492d1b 33(*widget_creation_function) ();
07bf635f
RS
34
35typedef struct _widget_creation_entry
36{
37 char* type;
38 widget_creation_function function;
39} widget_creation_entry;
40
41/* update all other instances of a widget. Can be used in a callback when
908ff139 42 a widget has been used by the user */
07bf635f 43void
99570665 44lw_internal_update_other_instances __P ((Widget, XtPointer, XtPointer));
07bf635f
RS
45
46/* get the widget_value for a widget in a given instance */
47widget_value*
99570665 48lw_get_widget_value_for_widget __P ((widget_instance *, Widget));
07bf635f 49
99570665
DL
50widget_info *lw_get_widget_info __P ((LWLIB_ID));
51widget_instance * lw_get_widget_instance __P ((Widget));
07bf635f 52
801332e4 53#endif /* LWLIB_INTERNAL_H */
6b61353c
KH
54
55/* arch-tag: ae02f67d-ef25-421c-b956-b01a4b0aac76
56 (do not change this comment) */