| 134 |
134 |
| 135 UiObject* uic_object_new_toplevel(void) { |
135 UiObject* uic_object_new_toplevel(void) { |
| 136 CxMempool *mp = cxMempoolCreateSimple(256); |
136 CxMempool *mp = cxMempoolCreateSimple(256); |
| 137 UiObject *obj = cxCalloc(mp->allocator, 1, sizeof(UiObject)); |
137 UiObject *obj = cxCalloc(mp->allocator, 1, sizeof(UiObject)); |
| 138 obj->ctx = uic_context(obj, mp); |
138 obj->ctx = uic_context(obj, mp); |
| |
139 obj->ctx->parent = ui_global_context(); |
| 139 uic_object_created(obj); |
140 uic_object_created(obj); |
| 140 return obj; |
141 return obj; |
| 141 } |
142 } |
| 142 |
143 |
| 143 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) { |
144 UiObject* uic_object_new(UiObject *toplevel, UIWIDGET widget) { |