ui/wpf/container.c

Sun, 01 Feb 2015 10:35:07 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 01 Feb 2015 10:35:07 +0100
changeset 84
a56c2baa9429
child 85
91f45354d1e2
permissions
-rw-r--r--

added vbox,hbox function (WPF)

#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