1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #ifndef BUTTON_H
30 #define BUTTON_H
31
32 #include "../ui/button.h"
33 #include "toolkit.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 void ui_push_button_callback(Widget widget, UiEventData *event, XtPointer d);
40
41 void ui_bind_togglebutton(
42 UiObject *obj,
43 Widget widget,
44 const char *varname,
45 UiInteger *value,
46 ui_callback onchange,
47 void *onchangedata,
48 int enable_state);
49
50 int64_t ui_togglebutton_get(UiInteger *i);
51 void ui_togglebutton_set(UiInteger *i,
int64_t value);
52
53 int64_t ui_radiobutton_get(UiInteger *i);
54 void ui_radiobutton_set(UiInteger *i,
int64_t value);
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif
61
62