ui/wpf/window.c

changeset 78
135920fe441b
child 83
a38aec91bd66
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/wpf/window.c	Sat Jan 24 19:14:29 2015 +0100
@@ -0,0 +1,18 @@
+#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;
+}

mercurial