Added uiTabDeletePage(). More TODOs.
This commit is contained in:
parent
c5d6ac30b8
commit
e74aeeab44
3
test.c
3
test.c
|
@ -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
2
ui.idl
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue