31 #include "../ui/tree.h" |
31 #include "../ui/tree.h" |
32 #include "toolkit.h" |
32 #include "toolkit.h" |
33 |
33 |
34 #include "../ui/container.h" |
34 #include "../ui/container.h" |
35 |
35 |
|
36 struct UiPathBar { |
|
37 winrt::Microsoft::UI::Xaml::Controls::Grid grid = { nullptr }; |
|
38 winrt::Microsoft::UI::Xaml::Controls::StackPanel buttons = { nullptr }; |
|
39 winrt::Microsoft::UI::Xaml::Controls::TextBox textbox = { nullptr }; |
|
40 |
|
41 UiModel* model; |
|
42 ui_getvaluefunc getvalue; |
|
43 ui_callback onactivate; |
|
44 void* onactivatedata; |
|
45 ui_callback ontextinput; |
|
46 void* ontextinputdata; |
|
47 ui_callback ondragstart; |
|
48 void* ondragstartdata; |
|
49 ui_callback ondragcomplete; |
|
50 void* ondragcompletedata; |
|
51 ui_callback ondrop; |
|
52 void* ondropdata; |
|
53 UiBool enabledrag; |
|
54 UiBool enabledrop; |
|
55 }; |
|
56 |
|
57 |
36 extern "C" void ui_simple_list_update(UiList * list, int i); |
58 extern "C" void ui_simple_list_update(UiList * list, int i); |
37 |
59 |
38 extern "C" void ui_breadcrumbbar_update(UiList * list, int i); |
60 extern "C" void ui_breadcrumbbar_update(UiList * list, int i); |
39 |
61 |
|
62 extern "C" void ui_pathbar_update(UiList * list, int i); |
|
63 |
40 std::vector<int> ui_create_listview_selection(winrt::Microsoft::UI::Xaml::Controls::ListView listview); |
64 std::vector<int> ui_create_listview_selection(winrt::Microsoft::UI::Xaml::Controls::ListView listview); |
41 |
65 |