ui/wpf/window.c

Sat, 24 Jan 2015 19:14:29 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 24 Jan 2015 19:14:29 +0100
changeset 78
135920fe441b
child 83
a38aec91bd66
permissions
-rw-r--r--

added initial WPF code

#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