|
JUCE
|
Describes a popup menu item. More...
Public Member Functions | |
| Item () noexcept | |
| Creates a null item. More... | |
| Item (const Item &) | |
| Creates a copy of an item. More... | |
| Item & | operator= (const Item &) |
| Creates a copy of an item. More... | |
Public Attributes | |
| String | text |
| The menu item's name. More... | |
| int | itemID |
| The menu item's ID. More... | |
| ScopedPointer< PopupMenu > | subMenu |
| A sub-menu, or nullptr if there isn't one. More... | |
| ScopedPointer< Drawable > | image |
| A drawable to use as an icon, or nullptr if there isn't one. More... | |
| ReferenceCountedObjectPtr< CustomComponent > | customComponent |
| A custom component for the item to display, or nullptr if there isn't one. More... | |
| ApplicationCommandManager * | commandManager |
| A command manager to use to automatically invoke the command, or nullptr if none is specified. More... | |
| String | shortcutKeyDescription |
| An optional string describing the shortcut key for this item. More... | |
| Colour | colour |
| A colour to use to draw the menu text. More... | |
| bool | isEnabled |
| True if this menu item is enabled. More... | |
| bool | isTicked |
| True if this menu item should have a tick mark next to it. More... | |
| bool | isSeparator |
| True if this menu item is a separator line. More... | |
| bool | isSectionHeader |
| True if this menu item is a section header. More... | |
Describes a popup menu item.
|
noexcept |
| PopupMenu::Item::Item | ( | const Item & | ) |
Creates a copy of an item.
| String PopupMenu::Item::text |
The menu item's name.
| int PopupMenu::Item::itemID |
The menu item's ID.
This can not be 0 if you want the item to be triggerable!
| ScopedPointer<PopupMenu> PopupMenu::Item::subMenu |
A sub-menu, or nullptr if there isn't one.
| ScopedPointer<Drawable> PopupMenu::Item::image |
A drawable to use as an icon, or nullptr if there isn't one.
| ReferenceCountedObjectPtr<CustomComponent> PopupMenu::Item::customComponent |
A custom component for the item to display, or nullptr if there isn't one.
| ApplicationCommandManager* PopupMenu::Item::commandManager |
A command manager to use to automatically invoke the command, or nullptr if none is specified.
| String PopupMenu::Item::shortcutKeyDescription |
An optional string describing the shortcut key for this item.
This is only used for displaying at the right-hand edge of a menu item - the menu won't attempt to actually catch or process the key. If you supply a commandManager parameter then the menu will attempt to fill-in this field automatically.
| Colour PopupMenu::Item::colour |
A colour to use to draw the menu text.
By default this is transparent black, which means that the LookAndFeel should choose the colour.
| bool PopupMenu::Item::isEnabled |
True if this menu item is enabled.
| bool PopupMenu::Item::isTicked |
True if this menu item should have a tick mark next to it.
| bool PopupMenu::Item::isSeparator |
True if this menu item is a separator line.
| bool PopupMenu::Item::isSectionHeader |
True if this menu item is a section header.