Added uiTabInsertPageBefore(). Added it to the test program. Now to implement it.
This commit is contained in:
parent
956b78718f
commit
84114f4913
|
@ -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
1
ui.idl
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue