77:bc0ed99e49c7 | 78:135920fe441b |
---|---|
1 #include <stdio.h> | |
2 #include <stdlib.h> | |
3 #include <string.h> | |
4 | |
5 #include "../ui/window.h" | |
6 #include "../ui/properties.h" | |
7 #include "../common/context.h" | |
8 | |
9 #include "window.h" | |
10 | |
11 UiObject* ui_window(char *title, void *window_data) { | |
12 UcxMempool *mp = ucx_mempool_new(256); | |
13 UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); | |
14 obj->widget = UIwindow(title, obj); | |
15 obj->ctx = uic_context(obj, mp); | |
16 | |
17 return obj; | |
18 } |