ui/wpf/container.c

changeset 84
a56c2baa9429
child 85
91f45354d1e2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/wpf/container.c	Sun Feb 01 10:35:07 2015 +0100
@@ -0,0 +1,30 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "container.h"
+#include "../common/object.h"
+
+UIWIDGET ui_vbox(UiObject *obj) {
+    UiContainer *ct = uic_get_current_container(obj);
+    
+    UIWIDGET *vbox = UIvbox(ct);
+    
+    UiObject *newobj = uic_object_new(obj, vbox);
+    newobj->container = (UiContainer*)vbox;
+    uic_obj_add(obj, newobj);
+    
+    return vbox;
+}
+
+UIWIDGET ui_hbox(UiObject *obj) {
+    UiContainer *ct = uic_get_current_container(obj);
+    
+    UIWIDGET *hbox = UIhbox(ct);
+    
+    UiObject *newobj = uic_object_new(obj, hbox);
+    newobj->container = (UiContainer*)hbox;
+    uic_obj_add(obj, newobj);
+    
+    return hbox;
+}
+

mercurial