Krotos Modules 3
Loading...
Searching...
No Matches
AttachedComboBox.h
Go to the documentation of this file.
1#pragma once
2namespace krotos
3{
4 //==============================================================================
9 class AttachedComboBox : public Component
10 {
11 public:
13 AttachedComboBox(StringArray items);
14
15 void resized() override;
16
18 ComboBox& getControlComponent();
19
21 std::unique_ptr<ComboBoxParameterAttachment>& getAttachment();
22
24 std::function<void()> onStateChange;
25
28 void setDragAndDropDescription(const var& description);
29
30 private:
31 ComboBox m_comboBox;
32 std::unique_ptr<ComboBoxParameterAttachment> m_attachment;
33
34 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AttachedComboBox)
35 };
36} // namespace krotos
This class combines a ComboBox and a ComboboxParameterAttachment to simplify the process of adding to...
Definition AttachedComboBox.h:10
ComboBox m_comboBox
Definition AttachedComboBox.h:31
std::unique_ptr< ComboBoxParameterAttachment > & getAttachment()
Definition AttachedComboBox.cpp:22
AttachedComboBox(StringArray items)
Definition AttachedComboBox.cpp:5
void setDragAndDropDescription(const var &description)
Definition AttachedComboBox.cpp:24
std::function< void()> onStateChange
Definition AttachedComboBox.h:24
std::unique_ptr< ComboBoxParameterAttachment > m_attachment
Definition AttachedComboBox.h:32
void resized() override
Definition AttachedComboBox.cpp:18
ComboBox & getControlComponent()
Definition AttachedComboBox.cpp:20
Definition AirAbsorptionFilter.cpp:2