diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-09 17:57:08 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-09 17:57:08 -0400 |
| commit | 1a525dea313bc78d707b6678f76c7355445d4a87 (patch) | |
| tree | 7094f894870d0a1b5f40f4ddd9a8d029d9bee69e /new/control.c | |
| parent | cba301abbc9af3b3a8d005c5e716349cdf877cc1 (diff) | |
Finished Windows conversion. Works perfectly!
Diffstat (limited to 'new/control.c')
| -rw-r--r-- | new/control.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/new/control.c b/new/control.c index ad03c49..aab5ea0 100644 --- a/new/control.c +++ b/new/control.c @@ -11,4 +11,22 @@ uintptr_t uiControlHandle(uiControl *c) return (*(c->handle))(c); } -// TODO do this for the others +void uiControlSetParent(uiControl *c, uintptr_t parent) +{ + (*(c->setParent))(c, parent); +} + +void uiControlRemoveParent(uiControl *c) +{ + (*(c->removeParent))(c); +} + +void uiControlPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height) +{ + (*(c->preferredSize))(c, d, width, height); +} + +void uiControlResize(uiControl *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) +{ + (*(c->resize))(c, x, y, width, height, d); +} |
