|
A container. More...
Public Member Functions | |
void | addPage (string title="") |
Add a new tab page to the control. | |
int | getSelectedPage () |
Get the index of the currently selected tab page. | |
void | selectPage (int index) |
Set the selected tab page. | |
Callbacks | |
void | onTabRightClick (String text, int index) |
Called when the user right-clicks on a tab page header. | |
void | onTabSelected (String text, int index) |
Called when a new tab page is selected. | |
Public Attributes | |
TabBook | |
bool | allowReorder |
Whether reordering tabs with the mouse is allowed. | |
int | defaultPage |
Index of page to select on first onWake() call (-1 to disable). | |
int | frontTabPadding |
X offset of first tab page header. | |
int | minTabWidth |
Minimum width allocated to a tab page header. | |
int | selectedPage |
Index of currently selected page. | |
int | tabHeight |
Height of tab page headers. | |
int | tabMargin |
Spacing to put between individual tab page headers. | |
GuiTabPosition | tabPosition |
Where to place the tab page headers. |
A container.
// Create
void GuiTabBookCtrl::addPage | ( | string | title = "" |
) |
Add a new tab page to the control.
title | Title text for the tab page header. |
int GuiTabBookCtrl::getSelectedPage | ( | ) |
Get the index of the currently selected tab page.
void GuiTabBookCtrl::onTabRightClick | ( | String | text, | |
int | index | |||
) |
Called when the user right-clicks on a tab page header.
text | Text of the page header for the tab that is being selected. | |
index | Index of the tab page being selected. |
void GuiTabBookCtrl::onTabSelected | ( | String | text, | |
int | index | |||
) |
Called when a new tab page is selected.
text | Text of the page header for the tab that is being selected. | |
index | Index of the tab page being selected. |
void GuiTabBookCtrl::selectPage | ( | int | index | ) |
Set the selected tab page.
index | Index of the tab page. |
Whether reordering tabs with the mouse is allowed.
Index of page to select on first onWake() call (-1 to disable).
X offset of first tab page header.
Minimum width allocated to a tab page header.
Index of currently selected page.
Height of tab page headers.
Spacing to put between individual tab page headers.
Where to place the tab page headers.