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 #pragma once
30
31 #include "toolkit.h"
32 #include "../ui/container.h"
33
34 #include "../ui/button.h"
35
36 #include "../common/context.h"
37
38 void ui_set_button_label(winrt::Microsoft::
UI::Xaml::Controls::Primitives::ButtonBase button,
const char* label,
const char* stockid,
const char *icon, UiLabelType type);
39
40 void togglebutton_register_checked_observers(winrt::Microsoft::
UI::Xaml::Controls::Primitives::ToggleButton button, UiObject* obj, UiVar* var);
41 void togglebutton_register_unchecked_observers(winrt::Microsoft::
UI::Xaml::Controls::Primitives::ToggleButton button, UiObject* obj, UiVar* var);
42 void togglebutton_register_callback(winrt::Microsoft::
UI::Xaml::Controls::Primitives::ToggleButton button, UiObject* obj, UiToggleArgs& args);
43
44 extern "C" int64_t ui_toggle_button_get(UiInteger * integer);
45 extern "C" void ui_toggle_button_set(UiInteger * integer,
int64_t value);
46
47 extern "C" int64_t ui_switch_get(UiInteger * integer);
48 extern "C" void ui_switch_set(UiInteger * integer,
int64_t value);
49
50 extern "C" int64_t ui_radio_button_get(UiInteger * integer);
51 extern "C" void ui_radio_button_set(UiInteger * integer,
int64_t value);
52