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 typedef struct {
40 UcxList *buttons;
41 Widget current;
42 int ref;
43 } RadioButtonGroup;
44
45 typedef struct {
46 UiObject *obj;
47 ui_callback callback;
48 void *userdata;
49 RadioButtonGroup *group;
50 } RadioEventData;
51
52
53 int64_t ui_toggle_button_get(UiInteger *i);
54 void ui_toggle_button_set(UiInteger *i,
int64_t value);
55 void ui_toggle_button_callback(
56 Widget widget,
57 UiEventData *data,
58 XmToggleButtonCallbackStruct *e);
59 void ui_push_button_callback(Widget widget, UiEventData *event, XtPointer d);
60
61 int64_t ui_radiobutton_get(UiInteger *value);
62 void ui_radiobutton_set(UiInteger *value,
int64_t i);
63
64 #ifdef __cplusplus
65 }
66 #endif
67
68 #endif
69
70