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/toolkit.h"
33 #include "../ui/button.h"
34 #include "toolkit.h"
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40
41 void ui_button_clicked(GtkWidget *widget, UiEventData *event);
42
43
44 void ui_toggled_obs(GtkToggleToolButton *widget, UiVarEventData *event);
45
46 UIWIDGET ui_checkbox_var(UiObject *obj,
char *label, UiVar *var);
47
48 UIWIDGET ui_radiobutton_var(UiObject *obj,
char *label, UiVar *var);
49
50 void ui_radio_obs(GtkToggleToolButton *widget, UiVarEventData *event);
51
52 int64_t ui_radiobutton_get(UiInteger *value);
53 void ui_radiobutton_set(UiInteger *value,
int64_t i);
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif
60
61