Holds information about a tab in the window. More...
Public Member Functions | |
Tab (TabWindow *parentWindow) noexcept | |
virtual | ~Tab () |
nkMemory::StringView | getLabel () const |
Window * | getAssociatedWin () const |
int | getId () const |
TabWindow * | getParentWindow () const |
virtual void | setLabel (nkMemory::StringView label, bool autoUpdate=true) |
void | setAssociatedWin (Window *win) |
void | setId (int id) |
Holds information about a tab in the window.
|
noexcept |
Constructor.
|
virtual |
Destructor.
nkMemory::StringView nkWinUi::TabWindow::Tab::getLabel | ( | ) | const |
Window* nkWinUi::TabWindow::Tab::getAssociatedWin | ( | ) | const |
int nkWinUi::TabWindow::Tab::getId | ( | ) | const |
TabWindow* nkWinUi::TabWindow::Tab::getParentWindow | ( | ) | const |
|
virtual |
Sets the tab label.
label | The label to set. |
autoUpdate | If the tab should visually be updated. |
void nkWinUi::TabWindow::Tab::setAssociatedWin | ( | Window * | win | ) |
Sets the associated window in the tab.
win | The window to associate. |
void nkWinUi::TabWindow::Tab::setId | ( | int | id | ) |
Sets the id of the tab.
id | The id to link. |