Added uiTabInsertPageBefore(). Added it to the test program. Now to implement it.

This commit is contained in:
Pietro Gagliardi 2015-05-06 13:58:03 -04:00
parent 956b78718f
commit 84114f4913
2 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,9 @@ static int moveBack;
static void movePage1(uiButton *b, void *data)
{
if (moveBack) {
// TODO
uiBoxDelete(mainBox, 1);
uiTabInsertPageBefore(mainTab, 0, uiControl(page1));
uiButtonSetText(b, moveOutText);
return;
}
uiTabDeletePage(mainTab, 0);

1
ui.idl
View File

@ -103,6 +103,7 @@ func NewLabel(text *const char) *Label;
interface Tab from Control {
func AppendPage(name *const char, c *Control);
func InsertPageBefore(name *const char, before uintmax_t, c *Control);
func DeletePage(index uintmax_t);
func NumPages(void) uintmax_t;
func Margined(page uintmax_t) int;