From dfbc8d439e933ed17b11fdcb7ca900ec3f0c6b2a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 May 2015 00:48:59 -0400 Subject: [PATCH] Added uiControlSysFunc() to box.c. --- box.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/box.c b/box.c index 56403991..f9c9e57f 100644 --- a/box.c +++ b/box.c @@ -111,6 +111,15 @@ static void boxPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_ *width += nStretchy * maxStretchyWidth; } +static void boxSysFunc(uiControl *c, uiControlSysFuncParams *p) +{ + box *b = (box *) c; + uintmax_t i; + + for (i = 0; i < b->len; i++) + uiControlSysFunc(b->controls[i].c, p); +} + static void boxResizeChildren(uiContainer *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) { box *b = (box *) c; @@ -248,6 +257,7 @@ uiBox *uiNewHorizontalBox(void) b->baseDestroy = uiControl(b)->Destroy; uiControl(b)->Destroy = boxDestroy; uiControl(b)->PreferredSize = boxPreferredSize; + uiControl(b)->SysFunc = boxSysFunc; uiContainer(b)->ResizeChildren = boxResizeChildren;