summaryrefslogtreecommitdiff
path: root/new/window_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 04:02:21 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 04:02:21 -0400
commita7293951f75d92a80d4d986ec7dda3fa25ab640b (patch)
treebf62429cdf82a14d955eaf6c080fa8d415cb2fa7 /new/window_windows.c
parent54dd1f40017dc31cc5f302cf67cd15ecb562daa1 (diff)
Wrote up the initial uiButton implementation. It (mostly; just needs text and for that I need to add a uiControlHandle()) works!
Diffstat (limited to 'new/window_windows.c')
-rw-r--r--new/window_windows.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/new/window_windows.c b/new/window_windows.c
index d5f675e..3f2abb2 100644
--- a/new/window_windows.c
+++ b/new/window_windows.c
@@ -133,3 +133,9 @@ void uiWindowOnClosing(uiWindow *w, int (*f)(uiWindow *, void *), void *data)
w->onClosing = f;
w->onClosingData = data;
}
+
+void uiWindowSetChild(uiWindow *w, uiControl *c)
+{
+ w->child = c;
+ (*(w->child->setParent))(w->child, (uintptr_t) (w->hwnd));
+}