2015-04-07 21:19:24 -05:00
|
|
|
// 7 april 2015
|
|
|
|
#include "uipriv.h"
|
|
|
|
|
2015-04-07 23:43:35 -05:00
|
|
|
void uiControlDestroy(uiControl *c)
|
|
|
|
{
|
|
|
|
(*(c->destroy))(c);
|
|
|
|
}
|
|
|
|
|
2015-04-07 21:19:24 -05:00
|
|
|
uintptr_t uiControlHandle(uiControl *c)
|
|
|
|
{
|
|
|
|
return (*(c->handle))(c);
|
|
|
|
}
|
|
|
|
|
2015-04-09 16:57:08 -05:00
|
|
|
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);
|
|
|
|
}
|