diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-04-25 18:51:08 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-04-25 18:51:08 +0200 |
commit | a85d41c53eed50f188502925ed34674397b86550 (patch) | |
tree | e33b042b8114f7ad587257d79bad021d5e617a44 /src/libui_sdl/libui/test/page11.c | |
parent | 3b3a09ed2b7a1f3d6f81ba6d1ddd7fbf17acd52d (diff) |
berp.
Diffstat (limited to 'src/libui_sdl/libui/test/page11.c')
-rw-r--r-- | src/libui_sdl/libui/test/page11.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/libui_sdl/libui/test/page11.c b/src/libui_sdl/libui/test/page11.c deleted file mode 100644 index 02ad213..0000000 --- a/src/libui_sdl/libui/test/page11.c +++ /dev/null @@ -1,54 +0,0 @@ -// 14 may 2016 -#include "test.h" - -// TODO add a test for childless windows -// TODO add tests for contianers with all controls hidden - -static uiGroup *newg(const char *n, int s) -{ - uiGroup *g; - - g = uiNewGroup(n); - if (s) - uiGroupSetChild(g, NULL); - return g; -} - -static uiTab *newt(int tt) -{ - uiTab *t; - - t = uiNewTab(); - if (tt) - uiTabAppend(t, "Test", NULL); - return t; -} - -uiBox *makePage11(void) -{ - uiBox *page11; - uiBox *ns; - uiBox *s; - - page11 = newHorizontalBox(); - - ns = newVerticalBox(); - uiBoxAppend(ns, uiControl(newg("", 0)), 0); - uiBoxAppend(ns, uiControl(newg("", 1)), 0); - uiBoxAppend(ns, uiControl(newg("Group", 0)), 0); - uiBoxAppend(ns, uiControl(newg("Group", 1)), 0); - uiBoxAppend(ns, uiControl(newt(0)), 0); - uiBoxAppend(ns, uiControl(newt(1)), 0); - uiBoxAppend(page11, uiControl(ns), 1); - - s = newVerticalBox(); - uiBoxAppend(s, uiControl(newg("", 0)), 1); - uiBoxAppend(s, uiControl(newg("", 1)), 1); - uiBoxAppend(s, uiControl(newg("Group", 0)), 1); - uiBoxAppend(s, uiControl(newg("Group", 1)), 1); - uiBoxAppend(s, uiControl(newt(0)), 1); - uiBoxAppend(s, uiControl(newt(1)), 1); - uiBoxAppend(page11, uiControl(s), 1); - - return page11; -} |