openshot-audio
0.1.4
|
#include <juce_gui_basics.h>
Public Member Functions | |
MenuItemIterator (const PopupMenu &menu) | |
~MenuItemIterator () | |
bool | next () |
void | addItemTo (PopupMenu &targetMenu) |
Public Attributes | |
String | itemName |
const PopupMenu * | subMenu |
int | itemId |
bool | isSeparator |
bool | isTicked |
bool | isEnabled |
bool | isCustomComponent |
bool | isSectionHeader |
const Colour * | customColour |
const Drawable * | icon |
ApplicationCommandManager * | commandManager |
Allows you to iterate through the items in a pop-up menu, and examine their properties.
To use this, just create one and repeatedly call its next() method. When this returns true, all the member variables of the iterator are filled-out with information describing the menu item. When it returns false, the end of the list has been reached.
PopupMenu::MenuItemIterator::MenuItemIterator | ( | const PopupMenu & | menu | ) |
Creates an iterator that will scan through the items in the specified menu.
Be careful not to add any items to a menu while it is being iterated, or things could get out of step.
PopupMenu::MenuItemIterator::~MenuItemIterator | ( | ) |
Destructor.
void PopupMenu::MenuItemIterator::addItemTo | ( | PopupMenu & | targetMenu | ) |
Adds an item to the target menu which has all the properties of this item.
bool PopupMenu::MenuItemIterator::next | ( | ) |
Returns true if there is another item, and sets up all this object's member variables to reflect that item's properties.
ApplicationCommandManager* juce::PopupMenu::MenuItemIterator::commandManager |
const Colour* juce::PopupMenu::MenuItemIterator::customColour |
const Drawable* juce::PopupMenu::MenuItemIterator::icon |
bool juce::PopupMenu::MenuItemIterator::isCustomComponent |
bool juce::PopupMenu::MenuItemIterator::isEnabled |
bool juce::PopupMenu::MenuItemIterator::isSectionHeader |
bool juce::PopupMenu::MenuItemIterator::isSeparator |
bool juce::PopupMenu::MenuItemIterator::isTicked |
int juce::PopupMenu::MenuItemIterator::itemId |
String juce::PopupMenu::MenuItemIterator::itemName |
const PopupMenu* juce::PopupMenu::MenuItemIterator::subMenu |