|
API Documentation
|
|
|
void setSelectionCallback(std::function< void(ListBox *)> value)
void setAttachedData(void *data)
virtual void importClassFromTree(nkExport::Node *rootNode) override
unsigned int getItemCount() const
virtual Item * insertItem(nkMemory::StringView text, void *data)
virtual Item * getCurrentSelection() const
A graphical list box.
Definition: ListBox.h:12
Item * getItemFromIndex(unsigned int index) const
virtual bool setSelected(nkMemory::StringView text)
static nkMemory::UniquePtr< ListBox > create(System *system=nullptr)
virtual bool setSelectedIndex(unsigned int index)
bool setSelectedData(void *data)
virtual void exportIntrospection(nkExport::Node *rootNode) override
Encompasses all API of component NilkinsExport.
Definition: Base64Encoder.h:7
Base class for any graphical component.
Definition: Component.h:12
The main system of the component.
Definition: System.h:18
std::function< void(ListBox *)> getSelectionCallback() const
ListBox * getParentList() const
virtual void changeItemLabel(nkMemory::StringView oldText, nkMemory::StringView newText)
nkMemory::StringView getLabel() const
void changeItemData(nkMemory::StringView text, void *newData)
virtual void clearItems()
virtual int getCurrentSelectionIndex() const
Item * getItemFromLabel(nkMemory::StringView label) const
void setParentList(ListBox *parent)
void setLabel(nkMemory::StringView label)
virtual void * deleteItem(nkMemory::StringView name)
void * getAttachedData() const
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
Item * getItemFromData(void *data) const
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7