Krotos Modules 3
Loading...
Searching...
No Matches
KwidgetGUI_Lfo.cpp
Go to the documentation of this file.
1
namespace
krotos
2
{
3
KwidgetGUI_Lfo::KwidgetGUI_Lfo
(
Kwidget
& k) :
KwidgetGUI
(k)
4
{
5
m_borderColour
= Colours::aquamarine;
6
7
addAttachedComponent
(
m_freq
,
Parameters::Frequency
);
8
}
9
10
void
KwidgetGUI_Lfo::resized
()
11
{
12
KwidgetGUI::resized
();
13
Rectangle<int> bounds =
m_currentBounds
;
14
auto
sliderBounds = bounds.removeFromTop(
static_cast<
int
>
(0.75f * getHeight()));
15
16
m_freq
.setBounds(sliderBounds);
17
}
18
}
// namespace krotos
krotos::KwidgetGUI_Lfo::m_freq
AttachedSlider m_freq
Definition
KwidgetGUI_Lfo.h:13
krotos::KwidgetGUI_Lfo::KwidgetGUI_Lfo
KwidgetGUI_Lfo(Kwidget &owner)
Definition
KwidgetGUI_Lfo.cpp:3
krotos::KwidgetGUI_Lfo::resized
void resized() override
Definition
KwidgetGUI_Lfo.cpp:10
krotos::KwidgetGUI
Interface for a UI Component that controls a KwidgetProcessor.
Definition
KwidgetGUI.h:24
krotos::KwidgetGUI::m_borderColour
Colour m_borderColour
Definition
KwidgetGUI.h:149
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_Lfo::Parameters::Frequency
static const String Frequency
Definition
Kwidget_Lfo.h:8
krotos_kwidget
kwidgets
lfo
KwidgetGUI_Lfo.cpp
Generated by
1.12.0