diff -r a38aec91bd66 -r a56c2baa9429 ui/wpf/container.c --- /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 +#include + +#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; +} +