Krotos Modules 3
Loading...
Searching...
No Matches
AttachedLabel.h
Go to the documentation of this file.
1#pragma once
2namespace krotos
3{
4 //==============================================================================
8 class AttachedLabel : public Component
9 {
10 public:
12 AttachedLabel(const String& labelText);
13
14 void resized() override;
15
18
20 std::unique_ptr<LabelCustomParameterAttachment>& getAttachment();
21
23 std::function<void()> onTextChange;
24
25 private:
27 std::unique_ptr<LabelCustomParameterAttachment> m_attachment;
28
29 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AttachedLabel)
30 };
31} // namespace krotos
This class ...
Definition AttachedLabel.h:9
std::unique_ptr< LabelCustomParameterAttachment > & getAttachment()
Definition AttachedLabel.cpp:29
std::unique_ptr< LabelCustomParameterAttachment > m_attachment
Definition AttachedLabel.h:27
std::function< void()> onTextChange
Definition AttachedLabel.h:23
void resized() override
Definition AttachedLabel.cpp:13
KrotosLabel m_label
Definition AttachedLabel.h:26
KrotosLabel & getLabel()
Definition AttachedLabel.cpp:27
AttachedLabel(const String &labelText)
Definition AttachedLabel.cpp:3
This class was initally created to add right-click edit functionality to labels.
Definition KrotosLabel.h:9
Definition AirAbsorptionFilter.cpp:2