Krotos Modules 3
Loading...
Searching...
No Matches
KwidgetGUI_Sawtooth.cpp
Go to the documentation of this file.
1
namespace
krotos
2
{
3
KwidgetGUI_Sawtooth::KwidgetGUI_Sawtooth
(
Kwidget
& owner) :
KwidgetGUI
(owner)
4
{
5
addAttachedComponent
(
m_amplitude
,
Parameters::Amplitude
);
6
}
7
8
void
KwidgetGUI_Sawtooth::resized
()
9
{
10
KwidgetGUI::resized
();
11
auto
sliderBounds =
m_currentBounds
.removeFromTop(
static_cast<
int
>
(0.75 *
static_cast<
float
>
(getHeight())));
12
13
m_amplitude
.setBounds(sliderBounds);
14
}
15
}
// namespace krotos
krotos::KwidgetGUI_Sawtooth::resized
void resized() override
Definition
KwidgetGUI_Sawtooth.cpp:8
krotos::KwidgetGUI_Sawtooth::KwidgetGUI_Sawtooth
KwidgetGUI_Sawtooth(Kwidget &owner)
Definition
KwidgetGUI_Sawtooth.cpp:3
krotos::KwidgetGUI_Sawtooth::m_amplitude
AttachedSlider m_amplitude
Definition
KwidgetGUI_Sawtooth.h:13
krotos::KwidgetGUI
Interface for a UI Component that controls a KwidgetProcessor.
Definition
KwidgetGUI.h:24
krotos::KwidgetGUI::addAttachedComponent
void addAttachedComponent(AttachedComponentType &component, const String ¶mID, bool isDraggable=true)
Definition
KwidgetGUI.h:112
krotos::KwidgetGUI::m_currentBounds
Rectangle< int > m_currentBounds
Definition
KwidgetGUI.h:146
krotos::KwidgetGUI::resized
void resized() override
Definition
KwidgetGUI.cpp:45
krotos::Kwidget
Definition
Kwidget.h:8
krotos
Definition
AirAbsorptionFilter.cpp:2
krotos::Kwidget_Sawtooth::Parameters::Amplitude
static const String Amplitude
Definition
Kwidget_Sawtooth.h:8
krotos_kwidget
kwidgets
sawtooth
KwidgetGUI_Sawtooth.cpp
Generated by
1.12.0