ui/wpf/container.c

changeset 84
a56c2baa9429
child 85
91f45354d1e2
equal deleted inserted replaced
83:a38aec91bd66 84:a56c2baa9429
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 #include "container.h"
5 #include "../common/object.h"
6
7 UIWIDGET ui_vbox(UiObject *obj) {
8 UiContainer *ct = uic_get_current_container(obj);
9
10 UIWIDGET *vbox = UIvbox(ct);
11
12 UiObject *newobj = uic_object_new(obj, vbox);
13 newobj->container = (UiContainer*)vbox;
14 uic_obj_add(obj, newobj);
15
16 return vbox;
17 }
18
19 UIWIDGET ui_hbox(UiObject *obj) {
20 UiContainer *ct = uic_get_current_container(obj);
21
22 UIWIDGET *hbox = UIhbox(ct);
23
24 UiObject *newobj = uic_object_new(obj, hbox);
25 newobj->container = (UiContainer*)hbox;
26 uic_obj_add(obj, newobj);
27
28 return hbox;
29 }
30

mercurial