6 setInterceptsMouseClicks(
true,
true);
21 Rectangle<int> bounds = getBoundsInParent();
23 boundsParameter->
setValue(bounds.toString());
28 auto backgroundBounds = getLocalBounds();
37 g.setColour(getLookAndFeel().findColour(ResizableWindow::backgroundColourId));
38 g.fillRoundedRectangle(backgroundBounds.reduced(1).toFloat(), 8.0f);
41 g.drawRoundedRectangle(getLocalBounds().reduced(3).toFloat(), 6.0f,
k_borderThickness);
94 std::function<
void(
float)> callback)
129 setInterceptsMouseClicks(
false,
true);
130 for (Component* child : getChildren())
132 if (child->getComponentID() != topBarComponentID)
134 child->setVisible(
false);
135 child->setEnabled(
false);
136 child->setAccessible(
false);
142 setInterceptsMouseClicks(
true,
true);
144 for (Component* child : getChildren())
146 if (child->getComponentID() != topBarComponentID)
148 child->setVisible(
true);
149 child->setEnabled(
true);
150 child->setAccessible(
true);
162 if (event.eventComponent->getComponentID() == topBarComponentID)
164 m_dragger.startDraggingComponent(
this, event);
174 void KwidgetGUI::mouseDrag(
const MouseEvent& event)
178 m_dragger.dragComponent(
this, event,
nullptr);
A wrapper around juce::ValueTree designed to store custom plugin state (strings, arrays,...
Definition CustomParameter.h:9
void setValue(const var &newValue, bool selfUpdate=false)
Definition CustomParameter.cpp:46
GenericParameter * getAttachedParameter()
Definition KParameter.cpp:170
std::function< void(const String &)> onDelete
Definition topBarComponent.h:32
Definition AirAbsorptionFilter.cpp:2
const int k_buttonSize
Definition KwidgetGUI.h:5
const int k_padding
Definition KwidgetGUI.h:3
const float k_borderThickness
Definition KwidgetGUI.h:4
Used to create a KParameter listener for GUI or non time critical updates.
Definition KParameter.h:72