Describes Menu list item service.
// Menu items have icon, caption, hotkey, and arrow areas
class IListItemMenuService :public virtual IListItemService
{
public:
virtual float getIconWidth() = 0; // Return max between current set icon area width and min required icon area width including spacings
virtual float getHotkeyWidth() = 0; // Return max between current set hotkey area width and min required hotkey area width including spacings
virtual float getArrowWidth() = 0; // Return max between current set arrow area width and min required arrow area width including spacings
virtual bool setIconWidth(const float value) = 0; // With spacings. Should be set before getting real required size
virtual bool setHotkeyWidth(const float value) = 0; // With spacings. Should be set before getting real required size
virtual bool setArrowWidth(const float value) = 0; // With spacings. Should be set before getting real required size
virtual bool NotifyOnHotkey() = 0; // Called by owner when hotkey corresponding to item found. Should return true if processed(it owner is menu it will be closed it this method return true)
};
Namespace: | nitisa::standard |
Include: | Standard/ListItems/IListItemMenu.h |