API Documentation
Public Member Functions | List of all members
nkWinUi::ContextMenu::Item Class Referenceabstract

An item within the context menu component. More...

Public Member Functions

 Item () noexcept
 
virtual ~Item ()
 
virtual nkMemory::StringView getLabel () const =0
 
virtual std::function< void()> getCallback () const =0
 

Detailed Description

An item within the context menu component.

Constructor & Destructor Documentation

◆ Item()

nkWinUi::ContextMenu::Item::Item ( )
noexcept

Constructor.

◆ ~Item()

virtual nkWinUi::ContextMenu::Item::~Item ( )
virtual

Destructor.

Member Function Documentation

◆ getLabel()

virtual nkMemory::StringView nkWinUi::ContextMenu::Item::getLabel ( ) const
pure virtual
Returns
The item's label.

◆ getCallback()

virtual std::function<void ()> nkWinUi::ContextMenu::Item::getCallback ( ) const
pure virtual
Returns
The callback used when the item is selected.

The documentation for this class was generated from the following file: