summaryrefslogtreecommitdiff
path: root/new/uipriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'new/uipriv.h')
-rw-r--r--new/uipriv.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/new/uipriv.h b/new/uipriv.h
new file mode 100644
index 0000000..158d30c
--- /dev/null
+++ b/new/uipriv.h
@@ -0,0 +1,19 @@
+// 6 april 2015
+#include "ui.h"
+
+typedef struct uiSize uiSize;
+typedef struct uiSizing uiSizing;
+
+struct uiSize {
+ intmax_t width;
+ intmax_t height;
+};
+
+struct uiControl {
+ uintptr_t (*handle)(uiControl *);
+ void (*setParent)(uiControl *, uintptr_t);
+ uiSize (*preferredSize)(uiControl *, uiSizing *);
+ void (*resizing)(uiControl *, intmax_t, intmax_t, intmax_t, intmax_t, uiSizing *);
+ void (*containerShow)(uiControl *);
+ void (*containerHide)(uiControl *);
+};