diff --git a/wpf/xtest.c b/wpf/xtest.c new file mode 100644 index 00000000..d46b6b82 --- /dev/null +++ b/wpf/xtest.c @@ -0,0 +1,23 @@ +// 25 november 2015 +#include +#include "../ui.h" +int onClosing(uiWindow *w, void *data) +{ + printf("in closing\n"); + uiQuit(); + return 1; +} +int main(void) +{ + uiInitOptions o; + uiWindow *w; + if (uiInit(&o) != NULL) return 1; + w = uiNewWindow("Hello from C", + 320, 240, 0); + uiWindowOnClosing(w, onClosing, NULL); + uiControlShow(uiControl(w)); + uiMain(); + printf("after main\n"); + uiUninit(); + printf("out\n"); +}