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 #import "toolkit.h"
30
31 #import "../ui/button.h"
32
33 @interface UiRadioButton : NSButton
34
35 @property UiVar *var;
36 @property Boolean direct_state;
37
38 - (UiRadioButton*)init;
39 - (
void)setState:(NSControlStateValue)state;
40
41 @end
42
43 @interface UiLinkButtonData : NSObject
44 @property UiObject *obj;
45 @property (weak) NSTextField *textfield;
46 @property (strong) NSString *label;
47 @property (strong) NSString *uri;
48 @property
BOOL visited;
49 @property ui_callback onclick;
50 @property
void *onclickdata;
51
52 - (id)init:(UiObject*)obj textfield:(NSTextField*)textfield;
53 - (
void)setLinkDataFromJson:(
const char*)jsonStr;
54 - (
void)buildLink;
55
56 @end
57
58
59 int64_t ui_togglebutton_get(UiInteger *i);
60 void ui_togglebutton_set(UiInteger *i,
int64_t value);
61
62 int64_t ui_switch_get(UiInteger *i);
63 void ui_switch_set(UiInteger *i,
int64_t value);
64
65 int64_t ui_radiobuttons_get(UiInteger *i);
66 void ui_radiobuttons_set(UiInteger *i,
int64_t value);
67
68 char* ui_linkbutton_get(UiString *s);
69 void ui_linkbutton_set(UiString *s,
const char *str);
70