Combo box widget, which consists of a text-field for custom input and a popup menu for preset values.
More...
|
| | ComboBox () |
| | Constructs an empty ComboBox object.
|
| |
| | ComboBox (const ComboBox &combobox_) |
| | Constructs a new ComboBox object from an existing ComboBox object (copy constructor)
|
| |
| | ComboBox (const Point &loc_, const double width_) |
| | Constructs a combo box.
|
| |
| | ComboBox (const Point &loc_, const double width_, const EntryVector &entries_, const int32_t initialIndex_) |
| | Constructs a combo box.
|
| |
| virtual | ~ComboBox () |
| | ComboBox destructor.
|
| |
| virtual ComboBox & | operator= (const ComboBox &rhs_) |
| | Allows one ComboBox object to be assigned from another.
|
| |
| virtual ComboBox * | clone () const |
| | Convenience method to clone a ComboBox object on the heap.
|
| |
| virtual ComboBox * | duplicate () const |
| | Convenience method to duplicate a ComboBox object, creating a new and identical UI element to the target (but not belonging to the same containing window)
|
| |
| virtual Alignment | alignment () const |
| | Gets the current alignment of the text field.
|
| |
| virtual void | setAlignment (const Alignment alignment_) |
| | Sets the current alignment of the text field.
|
| |
| virtual bool | bold () const |
| | Gets whether the text is bold.
|
| |
| virtual void | setBold (const bool bold_) |
| | Sets the font weight.
|
| |
| virtual bool | italic () const |
| | Gets whether the text is italicized.
|
| |
| virtual void | setItalic (const bool italic_) |
| | Sets the font style.
|
| |
| virtual int32_t | currentIndex () const |
| | Gets the index of the currently selected entry.
|
| |
| virtual bool | setCurrentIndex (const int32_t index_) |
| | Sets the currently selected entry by index.
|
| |
| virtual std::string | currentID () const |
| | Gets the ID of the currently selected entry.
|
| |
| virtual bool | setCurrentID (const std::string &id_) |
| | Sets the currently selected entry by ID.
|
| |
| virtual std::string | currentValue () const |
| | Gets the string value of the currently selected entry (or the custom value, if the user has entered one)
|
| |
| virtual bool | setCurrentValue (const std::string &value_) |
| | Sets the currently selected entry by string value.
|
| |
| 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 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 void | setEntries (const EntryVector &entries_) |
| | Allows the entries in an combo box to be changed out entirely.
|
| |
| 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 widget.
|
| |
| virtual bool | selectionRange (uint32_t &pos__, uint32_t &len__) const |
| | Gets the selection range of the text in the field, if any, in UTF-8.
|
| |
| virtual void | setSelectionRange (const uint32_t pos_, const uint32_t len_) |
| | Sets the selection range of the text in the field, in UTF-8 (and focuses it)
|
| |
| virtual bool | selectionRangeUTF32 (uint32_t &pos__, uint32_t &len__) const |
| | Gets the selection range of the text in the field, if any, in UTF-32.
|
| |
| virtual void | setSelectionRangeUTF32 (const uint32_t pos_, const uint32_t len_) |
| | Sets the selection range of the text in the field, in UTF-32 (and focuses it)
|
| |
| virtual std::string | lastCharTyped () const |
| | Gets the last character typed into the field.
|
| |
| virtual ModifierKey | lastModifierKeys () const |
| | Gets the last set of modifier keys used when typing into the field.
|
| |
| virtual void | valueChanging () |
| | Simulates the value of the combo box changing.
|
| |
| virtual Callback *const | valueChangingCallback () const |
| | Gets the value changing callback for the combo box.
|
| |
| virtual void | setValueChangingCallback (const Callback &callback_) |
| | Sets the value changing callback.
|
| |
| virtual void | valueChanged () |
| | Simulates the combo box having its value changed.
|
| |
| virtual Callback *const | valueChangedCallback () const |
| | Gets the value changed callback for the combo box.
|
| |
| virtual void | setValueChangedCallback (const Callback &callback_) |
| | Sets the value changed callback.
|
| |
| virtual void | update () |
| | Force the combo box to update its entries.
|
| |
| virtual bool | expanded () const |
| | Gets the expansion state of the combo box's popup menu.
|
| |
| virtual void | setExpanded (const bool exp_) |
| | Sets the expansion state of the combo box's popup menu.
|
| |
| virtual | ~Widget () |
| | Destructs a Widget.
|
| |
| virtual PlatformWidgetPtr | platformWidget () const |
| | Gets the platform-specific widget, around which the target object is wrapped.
|
| |
| virtual bool | isEmpty () const |
| | Gets whether the target Widget object is empty (constructed with the default ctor)
|
| |
| virtual bool | operator== (const Widget &rhs_) const |
| | Tests whether a given Widget object is the same as another.
|
| |
| virtual bool | operator!= (const Widget &rhs_) const |
| | Tests whether a given Widget object is not the same as another.
|
| |
| virtual Type | type () const |
| | Gets the type of the widget.
|
| |
| virtual Window *const | window () const |
| | Gets the parent window of the widget.
|
| |
| virtual Rect | frame () const |
| | Gets the widget frame.
|
| |
| virtual void | setFrame (const Rect &frame_) |
| | Sets the widget frame.
|
| |
| virtual void | offset (const double x_, const double y_) |
| | Offsets the widget from its current location by the given amounts, in 1x resolution coordinates.
|
| |
| virtual std::string | text () const |
| | Gets the current text value of the widget.
|
| |
| virtual void | setText (const std::string &text_) |
| | Sets the current text value of the widget.
|
| |
| virtual bool | enabled () |
| | Gets whether the widget is enabled.
|
| |
| virtual void | setEnabled (const bool enable_) |
| | Enables or disables the widget.
|
| |
| virtual bool | visible () |
| | Gets whether the widget is visible.
|
| |
| virtual void | setVisible (const bool visible_) |
| | Shows or hides the widget.
|
| |
| virtual void | setOrigin (const Point &p_) |
| | Convenience method to set just the origin of the target widget's frame.
|
| |
| virtual void | setSize (const Size &s_) |
| | Convenience method to set just the size of the target widget's frame.
|
| |
| virtual void | setWidth (const double w_) |
| | Convenience method to set just the width of the target widget's frame.
|
| |
| virtual void | setHeight (const double h_) |
| | Convenience method to set just the height of the target widget's frame.
|
| |
| virtual bool | hasFocus () const |
| | Gets whether the widget currently has focus.
|
| |
| virtual void | focus () const |
| | Forces the widget to have focus, taking it from any other focused widget of the same window.
|
| |
| virtual Callback *const | focusCallback () const |
| | Gets the current focus callback for the widget.
|
| |
| virtual void | setFocusCallback (const Callback &callback_) |
| | Sets the focus callback for the widget.
|
| |
| virtual void | blur () const |
| | Removes focus from the widget.
|
| |
| virtual Callback *const | blurCallback () const |
| | Gets the current blur callback for the widget.
|
| |
| virtual void | setBlurCallback (const Callback &callback_) |
| | Sets the blur callback for the widget.
|
| |
| virtual std::string | tooltip () const |
| | Gets the tool tip string for the widget.
|
| |
| virtual void | setTooltip (const std::string &tip_) |
| | Sets the tool tip string for the widget.
|
| |
|
| static ComboBox | ComboBoxWithID (const Point &loc_, const double width_, const EntryVector &entries_, const std::string &initialID_) |
| | Named constructor for a combo box with an initial ID selected.
|
| |
| static ComboBox | ComboBoxWithValue (const Point &loc_, const double width_, const EntryVector &entries_, const std::string &value_) |
| | Named constructor for a combo box with an initial string value (whether it's in the entries_ argument or not)
|
| |
| static bool | isCoreWidget (const PlatformWidgetPtr widget_) |
| | Gets whether the given platform widget is a hdi_core widget.
|
| |
| static std::unique_ptr< Widget > | lastClickedWidget () |
| | Gets the last widget that received a click event (either by the user or programmatically)
|
| |
| static std::unique_ptr< Widget > | lastValueChangingWidget () |
| | Gets the last widget that received a value changing event (either by the user or programmatically)
|
| |
| static std::unique_ptr< Widget > | lastValueChangedWidget () |
| | Gets the last widget that received a value changed event (either by the user or programmatically)
|
| |
| static std::unique_ptr< Widget > | lastDropWidget () |
| | Gets the last widget that received a drag-and-drop drop event (either by the user or programmatically)
|
| |
| static std::unique_ptr< Widget > | lastPotentialReorderWidget () |
| | Gets the last widget that received a potential-reorder event.
|
| |
| static std::unique_ptr< Widget > | lastReorderWidget () |
| | Gets the last widget that received a reorder event.
|
| |
Combo box widget, which consists of a text-field for custom input and a popup menu for preset values.