Krotos Modules 3
Loading...
Searching...
No Matches
KwidgetGUI_Sine.cpp
Go to the documentation of this file.
1namespace krotos
2{
7
9 {
11 Rectangle<int> bounds = m_currentBounds; // current bounds holds the resized bounds from KM3 GUI
12
13 auto sliderBounds = bounds.removeFromTop(static_cast<int>(0.75f * static_cast<float>(getHeight())));
14
15 m_amplitude.setBounds(sliderBounds);
16 }
17} // namespace krotos
KwidgetGUI_Sine(Kwidget &owner)
Definition KwidgetGUI_Sine.cpp:3
AttachedSlider m_amplitude
Definition KwidgetGUI_Sine.h:13
void resized() override
Definition KwidgetGUI_Sine.cpp:8
Interface for a UI Component that controls a KwidgetProcessor.
Definition KwidgetGUI.h:24
void addAttachedComponent(AttachedComponentType &component, const String &paramID, bool isDraggable=true)
Definition KwidgetGUI.h:112
Rectangle< int > m_currentBounds
Definition KwidgetGUI.h:146
void resized() override
Definition KwidgetGUI.cpp:45
Definition Kwidget.h:8
Definition AirAbsorptionFilter.cpp:2
static const String Amplitude
Definition Kwidget_Sine.h:8