Added uiTabDeletePage(). More TODOs.

This commit is contained in:
Pietro Gagliardi 2015-04-17 22:17:00 -04:00
parent c5d6ac30b8
commit e74aeeab44
2 changed files with 3 additions and 2 deletions

3
test.c
View File

@ -173,8 +173,7 @@ uiTab *tab;
void movePage1Out(uiButton *b, void *data) void movePage1Out(uiButton *b, void *data)
{ {
// TODO uiTabDeletePage(tab, 0)
// uiTabDeletePage(tab, 0)
uiStackAppend(mainStack, uiControl(page1stack), 1); uiStackAppend(mainStack, uiControl(page1stack), 1);
} }

2
ui.idl
View File

@ -122,7 +122,9 @@ interface Label from Control {
func NewLabel(text *const char) *Label; func NewLabel(text *const char) *Label;
interface Tab from Control { interface Tab from Control {
// TODO rename to AppendPage()
func AddPage(name *const char, c *Control); func AddPage(name *const char, c *Control);
func DeletePage(index intmax_t);
}; };
func NewTab(void) *Tab; func NewTab(void) *Tab;