Added default implementations of the new methods where necessary. Before we go around implementing them, it's time for a massive rewrite of uiBox.

This commit is contained in:
Pietro Gagliardi 2016-05-06 21:50:14 -04:00
parent c9998fcd05
commit a3629e752d
4 changed files with 9 additions and 0 deletions

View File

@ -107,6 +107,8 @@ static void uiBoxSyncEnableState(uiDarwinControl *c, int enabled)
}
uiDarwinControlDefaultSetSuperview(uiBox, view)
uiDarwinControlDefaultChildrenShouldAllowSpaceAtTrailingEdge(uiBox, view)
uiDarwinControlDefaultChildrenShouldAllowSpaceAtBottom(uiBox, view)
static int isStretchy(uiBox *b, uintmax_t n)
{

View File

@ -69,6 +69,8 @@ static void uiGroupSyncEnableState(uiDarwinControl *c, int enabled)
}
uiDarwinControlDefaultSetSuperview(uiGroup, box)
uiDarwinControlDefaultChildrenShouldAllowSpaceAtTrailingEdge(uiGroup, box)
uiDarwinControlDefaultChildrenShouldAllowSpaceAtBottom(uiGroup, box)
static void groupRelayout(uiGroup *g)
{

View File

@ -55,6 +55,8 @@ uiDarwinControlDefaultDisable(uiTab, tabview)
uiDarwinControlDefaultSyncEnableState(uiTab, tabview)
uiDarwinControlDefaultSetSuperview(uiTab, tabview)
uiDarwinControlDefaultChildrenShouldAllowSpaceAtTrailingEdge(uiTab, tabview)
uiDarwinControlDefaultChildrenShouldAllowSpaceAtBottom(uiTab, tabview)
static void tabRelayout(uiTab *t)
{

View File

@ -141,6 +141,9 @@ static void uiWindowSetSuperview(uiDarwinControl *c, NSView *superview)
// TODO
}
uiDarwinControlDefaultChildrenShouldAllowSpaceAtTrailingEdge(uiWindow, window)
uiDarwinControlDefaultChildrenShouldAllowSpaceAtBottom(uiWindow, window)
static void windowRelayout(uiWindow *w)
{
uiDarwinControl *cc;