ui/winui/window.cpp

changeset 627
3f0c9fe60c68
parent 477
be34594ee942
child 986
6f7600c2b9e1
equal deleted inserted replaced
626:724c7036a03e 627:3f0c9fe60c68
145 145
146 return obj; 146 return obj;
147 } 147 }
148 148
149 UIEXPORT UiObject* ui_simple_window(const char *title, void *window_data) { 149 UIEXPORT UiObject* ui_simple_window(const char *title, void *window_data) {
150 CxMempool* mp = cxMempoolCreateSimple(256); 150 UiObject* obj = uic_object_new_toplevel();
151 UiObject* obj = (UiObject*)cxCalloc(mp->allocator, 1, sizeof(UiObject));
152 151
153 obj->ctx = uic_context(obj, mp); 152 obj->ctx = uic_context(obj, mp);
154 obj->window = window_data; 153 obj->window = window_data;
155 154
156 Window window = Window(); 155 Window window = Window();

mercurial