Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Flyout menu, which can be added to a Panel for additional options. More...
#include <hdicoreFlyout.h>
Public Types | |
typedef std::vector< PopupEntry > | EntryVector |
Public Member Functions | |
Flyout () | |
Constructs an empty Flyout menu, to which entries may be added later. | |
Flyout (const Flyout &fo_) | |
Constructs a new Flyout object from an existing Flyout object (copy constructor) | |
Flyout (const EntryVector &entries_) | |
Constructs a Flyout menu with a list of entries. | |
virtual | ~Flyout () |
Flyout destructor. | |
virtual Flyout & | operator= (const Flyout &rhs_) |
Overloaded assigment operator to copy one Flyout object's values to another. | |
virtual int32_t | currentIndex () const |
Gets the index of the currently selected entry. | |
virtual std::string | currentID () const |
Gets the ID of the currently selected entry. | |
virtual std::string | currentValue () const |
Gets the string value of the currently selected entry. | |
virtual std::unique_ptr< PopupEntry > | currentEntry () const |
Gets the current entry object. | |
virtual bool | currentUserData (void *&data__) const |
Gets the user data for the current entry. | |
virtual const std::vector< std::shared_ptr< PopupEntry > > *const | entries () const |
Gets the entries vector. | |
virtual void | setEntries (const EntryVector &entries_) |
Allows the entries in an flyout menu to be changed out entirely. | |
virtual bool | hasEntry (const std::string &id_) const |
Gets whether the entries vector already contains an entry, based on its ID. | |
virtual std::shared_ptr< PopupEntry > | entryWithID (const std::string &id_) const |
Gets the entry with the given ID, provided it exists within the widget. | |
virtual bool | pushEntry (const PopupEntry &entry_) |
Pushes an entry onto the list (i.e. at the end) | |
virtual bool | popEntry (PopupEntry &entry__) |
Pops an entry off the list (i.e. from the end) | |
virtual bool | insertEntry (const std::string &id_, const PopupEntry &entry_) |
Inserts an entry into the list of entries at a given position. | |
virtual bool | removeEntry (const std::string &id_, PopupEntry &entry__) |
Removes a specific entry from the list of entries. | |
virtual void | clearEntries () |
Clears all entries contained by the flyout. | |
virtual Panel *const | panel () const |
Gets the parent panel of the flyout. | |
virtual void | selectionMade () |
Simulates the flyout menu having one of its entries selected. | |
virtual Callback *const | selectionMadeCallback () const |
Gets the flyout entry selection callback. | |
virtual void | setSelectionMadeCallback (const Callback &callback_) |
Sets the flyout entry selection callback. | |
virtual Callback *const | showingCallback () const |
Gets the showing callback for the flyout menu. | |
virtual void | setShowingCallback (const Callback &callback_) |
Sets the showing callback for the flyout menu. | |
virtual bool | entryChecked (const int32_t index_) |
Gets whether the specified flyout entry is checked. | |
virtual bool | checkEntry (const int32_t index_, const bool check_) |
Sets whether the specified flyout entry is checked. | |
virtual bool | entryChecked (const std::string &id_) |
Gets whether the specified flyout entry is checked. | |
virtual bool | checkEntry (const std::string &id_, const bool check_) |
Sets whether the specified flyout entry is checked. | |
virtual void | update () |
Forces the flyout menu to update its entries. | |
Friends | |
class | Panel |
pui::PopupMenu * | __accessImpl (const Flyout &) |
hdi::core::Flyout::Flyout | ( | ) |
Constructs an empty Flyout menu, to which entries may be added later.
hdi::core::Flyout::Flyout | ( | const Flyout & | fo_ | ) |
hdi::core::Flyout::Flyout | ( | const EntryVector & | entries_ | ) |
Constructs a Flyout menu with a list of entries.
entries_ | Vector of string entries, whose order in the flyout will match the vector |
|
virtual |
Flyout destructor.
|
virtual |
Sets whether the specified flyout entry is checked.
index_ | The index number of the entry in question |
check_ | true to check the entry, false to uncheck |
|
virtual |
Sets whether the specified flyout entry is checked.
id_ | ID string of the entry in question, as UTF-8 |
check_ | true to check the entry, false to uncheck |
|
virtual |
Clears all entries contained by the flyout.
|
virtual |
Gets the current entry object.
|
virtual |
Gets the ID of the currently selected entry.
|
virtual |
Gets the index of the currently selected entry.
|
virtual |
Gets the user data for the current entry.
data__ | Return-by-reference for the current user data; ignore if false is returned |
|
virtual |
Gets the string value of the currently selected entry.
|
virtual |
Gets the entries vector.
|
virtual |
Gets whether the specified flyout entry is checked.
index_ | The index number of the entry in question |
|
virtual |
Gets whether the specified flyout entry is checked.
id_ | ID string of the entry in question, as UTF-8 |
|
virtual |
Gets the entry with the given ID, provided it exists within the widget.
id_ | ID of the entry to search for |
|
virtual |
Gets whether the entries vector already contains an entry, based on its ID.
id_ | ID of the entry to search for, as UTF-8 |
|
virtual |
Inserts an entry into the list of entries at a given position.
id_ | Existing entry immediately before the position at which the new entry will be inserted, as UTF-8 |
entry_ | New entry object to insert into the list of entries |
Overloaded assigment operator to copy one Flyout object's values to another.
rhs_ | Righthand side of the assignment operator |
|
virtual |
Gets the parent panel of the flyout.
|
virtual |
Pops an entry off the list (i.e. from the end)
entry__ | Return-by-reference for the popped entry, so the caller can inspect which one was removed |
|
virtual |
Pushes an entry onto the list (i.e. at the end)
entry_ | New entry object to insert into the list of entries |
|
virtual |
Removes a specific entry from the list of entries.
id_ | ID of the entry to be removed, as UTF-8 |
entry__ | Return-by-reference for the removed entry, so the caller can inspect which one was removed |
|
virtual |
Simulates the flyout menu having one of its entries selected.
|
virtual |
Gets the flyout entry selection callback.
|
virtual |
Allows the entries in an flyout menu to be changed out entirely.
entries_ | New set of entries that the menu will contain |
|
virtual |
Sets the flyout entry selection callback.
callback_ | New callback for when a flyout menu entry is selected |
|
virtual |
Sets the showing callback for the flyout menu.
callback_ | New callback for when a the flyout is about to be shown |
|
virtual |
Gets the showing callback for the flyout menu.
|
virtual |
Forces the flyout menu to update its entries.