Sun, 25 Jan 2015 15:01:04 +0100
added menus (WPF)
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "../ui/window.h" #include "../ui/properties.h" #include "../common/context.h" #include "window.h" UiObject* ui_window(char *title, void *window_data) { UcxMempool *mp = ucx_mempool_new(256); UiObject *obj = ucx_mempool_calloc(mp, 1, sizeof(UiObject)); obj->widget = UIwindow(title, obj); obj->ctx = uic_context(obj, mp); return obj; }