ui/winui/toolkit.cpp

branch
newapi
changeset 189
4daddc326877
parent 184
8c9b4b28aaa9
child 205
b1ac0dd1d38b
equal deleted inserted replaced
188:fbbae6738252 189:4daddc326877
37 #include <winrt/Microsoft.UI.Xaml.XamlTypeInfo.h> 37 #include <winrt/Microsoft.UI.Xaml.XamlTypeInfo.h>
38 #include <winrt/Microsoft.UI.Xaml.Markup.h> 38 #include <winrt/Microsoft.UI.Xaml.Markup.h>
39 39
40 #include <cx/allocator.h> 40 #include <cx/allocator.h>
41 #include <cx/mempool.h> 41 #include <cx/mempool.h>
42
43 #include "../common/context.h"
42 44
43 45
44 using namespace winrt; 46 using namespace winrt;
45 using namespace Microsoft::UI::Xaml; 47 using namespace Microsoft::UI::Xaml;
46 using namespace Microsoft::UI::Xaml::Controls; 48 using namespace Microsoft::UI::Xaml::Controls;
108 void ui_context_add_widget_destructor(UiContext* ctx, UiWidget* widget) { 110 void ui_context_add_widget_destructor(UiContext* ctx, UiWidget* widget) {
109 // TODO: 111 // TODO:
110 } 112 }
111 113
112 114
115 UiEvent ui_create_int_event(UiObject* obj, int64_t i) {
116 UiEvent evt;
117 evt.obj = obj;
118 evt.window = obj->window;
119 evt.document = obj->ctx->document;
120 evt.eventdata = nullptr;
121 evt.intval = i;
122 return evt;
123 }
124
125
113 126
114 void ui_init(const char* appname, int argc, char** argv) { 127 void ui_init(const char* appname, int argc, char** argv) {
115 application_name = appname; 128 application_name = appname;
116 } 129 }
117 130

mercurial