This class combines a ComboBox and a ComboboxParameterAttachment to simplify the process of adding toggle buttons to a GUI element.
More...
#include <AttachedComboBox.h>
This class combines a ComboBox and a ComboboxParameterAttachment to simplify the process of adding toggle buttons to a GUI element.
◆ AttachedComboBox()
| krotos::AttachedComboBox::AttachedComboBox |
( |
StringArray | items | ) |
|
Constructs a new slider with specified text for the label.
◆ getAttachment()
| std::unique_ptr< ComboBoxParameterAttachment > & krotos::AttachedComboBox::getAttachment |
( |
| ) |
|
Returns reference to the attachment Object.
◆ getControlComponent()
| ComboBox & krotos::AttachedComboBox::getControlComponent |
( |
| ) |
|
Generic function name for getButton()
◆ resized()
| void krotos::AttachedComboBox::resized |
( |
| ) |
|
|
override |
◆ setDragAndDropDescription()
| void krotos::AttachedComboBox::setDragAndDropDescription |
( |
const var & | description | ) |
|
Set the descriptor for the Label which will be passed to a dragAndDropTarget. Setting this will enable the Label to become draggable
◆ m_attachment
| std::unique_ptr<ComboBoxParameterAttachment> krotos::AttachedComboBox::m_attachment |
|
private |
◆ m_comboBox
| ComboBox krotos::AttachedComboBox::m_comboBox |
|
private |
◆ onStateChange
| std::function<void()> krotos::AttachedComboBox::onStateChange |
You can assign a lambda to this callback object to have it called when the button's state changes.
The documentation for this class was generated from the following files: