|
API Documentation
|
|
|
Tab * getTabByLabel(nkMemory::StringView label) const
virtual Layout * setLayout(LAYOUT_TYPE layoutType) override
LAYOUT_TYPE
Defines the type of layout available.
Definition: LayoutType.h:12
virtual void setLabel(nkMemory::StringView label, bool autoUpdate=true)
void setAssociatedWin(Window *win)
Represents a layout to organize children of a component.
Definition: Layout.h:12
Tab * getActiveTab() const
nkMemory::StringView getLabel() const
Window * getAssociatedWin() const
Base class for any graphical component.
Definition: Component.h:12
void setTabSwitchCallback(std::function< bool(TabWindow *, TabWindow::Tab *, bool)> value)
virtual void adaptToDisplayArea(Window *toAdapt) const =0
The main system of the component.
Definition: System.h:18
virtual void eraseTab(Tab *tab)
virtual void importClassFromTree(nkExport::Node *rootNode) override
virtual void reorderTab(Tab *tab, unsigned int newIndex)
virtual Tab * getTabByMouseRel(nkMaths::Point mouseRel) const =0
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
Represents a 2D Point.
Definition: Point.h:12
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
virtual Tab * addTab(nkMemory::StringView label)
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
Holds information about a tab in the window.
Definition: TabWindow.h:19
A graphical window, made for general purpose.
Definition: Window.h:14
virtual void exportIntrospection(nkExport::Node *rootNode) override
virtual void setActiveTab(Tab *toActivate)
unsigned int getTabCount() const
const std::function< bool(TabWindow *, TabWindow::Tab *, bool)> & getTabSwitchCallback() const
Tab * getTabById(int id) const
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
TabWindow * getParentWindow() const
A graphical tab window.
Definition: TabWindow.h:12
Tab * getTabByIndex(unsigned int index) const
static nkMemory::UniquePtr< TabWindow > create(System *system=nullptr)
TabWindow(System *system) noexcept
int getTabIndex(Tab *tab) const
Tab(TabWindow *parentWindow) noexcept