Describes minimum required functionality for Menu item type.
You can find more information in comments below. Overrided methods can be found in corresponding base interface.
// Difference from IListItem in 3 mandatory parts: icon, hotkey, and arrow(for subitems)
class IListItemMenu :public virtual IListItem
{
public:
virtual int getHotkeyCount() = 0; // Return hotkey count
virtual Hotkey getHotkey(const int index) = 0; // Return hotkey by index
virtual String getHotkeys() = 0; // Return hotkeys string representation
virtual bool AddHotkey(const Key key, const bool ctrl, const bool alt, const bool shift, const bool down) = 0; // Add hotkey
virtual bool DeleteHotkey(const int index) = 0; // Delete hotkey by index
virtual bool DeleteHotkeys() = 0; // Delete all hotkeys
};
Namespace: | nitisa::standard |
Include: | Standard/ListItems/IListItemMenu.h |