29 #include "../../ucx/mempool.h" |
29 #include "../../ucx/mempool.h" |
30 #include "../common/context.h" |
30 #include "../common/context.h" |
31 |
31 |
32 #include "window.h" |
32 #include "window.h" |
33 #include "menu.h" |
33 #include "menu.h" |
|
34 #include "toolbar.h" |
34 |
35 |
35 UiObject* ui_window(char *title, void *window_data) { |
36 UiObject* ui_window(char *title, void *window_data) { |
36 UcxMempool *mp = ucx_mempool_new(256); |
37 UcxMempool *mp = ucx_mempool_new(256); |
37 UiObject *obj = (UiObject*)ucx_mempool_calloc(mp, 1, sizeof(UiObject)); |
38 UiObject *obj = (UiObject*)ucx_mempool_calloc(mp, 1, sizeof(UiObject)); |
38 obj->ctx = uic_context(obj, mp); |
39 obj->ctx = uic_context(obj, mp); |