diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-06 21:53:31 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-06 21:53:31 -0400 |
| commit | 93b99a690c7b241d62bf09e7c325bf29ca2687b0 (patch) | |
| tree | a99de0a9ad3ac3a132e69d758c98cff6bd0e33d7 /new/uipriv.h | |
| parent | 685844c5940dab356c348c51ceee29954305ec8b (diff) | |
Started working on uiControl.
Diffstat (limited to 'new/uipriv.h')
| -rw-r--r-- | new/uipriv.h | 19 |
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 *); +}; |
