Krotos Modules 3
Loading...
Searching...
No Matches
KwidgetGUI_Scaledadsr.cpp
Go to the documentation of this file.
1
namespace
krotos
2
{
3
const
String
KwidgetGUI_Scaledadsr::ComponentIds::SliderAttack
(
"AttackPitch"
);
4
;
5
const
String
KwidgetGUI_Scaledadsr::ComponentIds::SliderDecay
(
"DecayPitch"
);
6
const
String
KwidgetGUI_Scaledadsr::ComponentIds::SliderSustain
(
"SustainPitch"
);
7
const
String
KwidgetGUI_Scaledadsr::ComponentIds::SliderRelease
(
"ReleasePitch"
);
8
const
String
KwidgetGUI_Scaledadsr::ComponentIds::SliderAmount
(
"AmountPitch"
);
9
10
KwidgetGUI_Scaledadsr::KwidgetGUI_Scaledadsr
(
Kwidget
& owner) :
KwidgetGUI
(owner)
11
{
12
using
P =
Parameters
;
13
m_borderColour
= Colours::aquamarine;
14
15
addAttachedComponent
(
m_adsrAttack
, P::Attack);
16
m_adsrAttack
.setComponentID(
ComponentIds::SliderAttack
);
17
addAttachedComponent
(
m_adsrDecay
, P::Decay);
18
m_adsrDecay
.setComponentID(
ComponentIds::SliderDecay
);
19
addAttachedComponent
(
m_adsrSustain
, P::Sustain);
20
m_adsrSustain
.setComponentID(
ComponentIds::SliderSustain
);
21
addAttachedComponent
(
m_adsrRelease
, P::Release);
22
m_adsrRelease
.setComponentID(
ComponentIds::SliderRelease
);
23
addAttachedComponent
(
m_adsrAmount
, P::Amount);
24
m_adsrAmount
.setComponentID(
ComponentIds::SliderAmount
);
25
26
ignorePadding
(
true
);
27
}
28
29
void
KwidgetGUI_Scaledadsr::resized
()
30
{
31
KwidgetGUI::resized
();
32
33
// rotary sliders
34
m_adsrAttack
.setBounds(
m_layout
.
rotSliderTopL
);
35
m_adsrDecay
.setBounds(
m_layout
.
rotSliderTopM
);
36
m_adsrSustain
.setBounds(
m_layout
.
rotSliderBottomL
);
37
m_adsrRelease
.setBounds(
m_layout
.
rotSliderBottomM
);
38
m_adsrAmount
.setBounds(
m_layout
.
rotSliderTopR
);
39
}
40
}
// namespace krotos
krotos::KwidgetGUI_Scaledadsr::m_adsrRelease
AttachedSlider m_adsrRelease
Definition
KwidgetGUI_Scaledadsr.h:41
krotos::KwidgetGUI_Scaledadsr::resized
void resized() override
Definition
KwidgetGUI_Scaledadsr.cpp:29
krotos::KwidgetGUI_Scaledadsr::Parameters
Kwidget_Scaledadsr::Parameters Parameters
Definition
KwidgetGUI_Scaledadsr.h:6
krotos::KwidgetGUI_Scaledadsr::m_layout
struct krotos::KwidgetGUI_Scaledadsr::Layout m_layout
krotos::KwidgetGUI_Scaledadsr::m_adsrSustain
AttachedSlider m_adsrSustain
Definition
KwidgetGUI_Scaledadsr.h:40
krotos::KwidgetGUI_Scaledadsr::KwidgetGUI_Scaledadsr
KwidgetGUI_Scaledadsr(Kwidget &owner)
Definition
KwidgetGUI_Scaledadsr.cpp:10
krotos::KwidgetGUI_Scaledadsr::m_adsrDecay
AttachedSlider m_adsrDecay
Definition
KwidgetGUI_Scaledadsr.h:39
krotos::KwidgetGUI_Scaledadsr::m_adsrAmount
AttachedSlider m_adsrAmount
Definition
KwidgetGUI_Scaledadsr.h:42
krotos::KwidgetGUI_Scaledadsr::m_adsrAttack
AttachedSlider m_adsrAttack
Definition
KwidgetGUI_Scaledadsr.h:38
krotos::KwidgetGUI
Interface for a UI Component that controls a KwidgetProcessor.
Definition
KwidgetGUI.h:24
krotos::KwidgetGUI::ignorePadding
void ignorePadding(bool ignore)
Definition
KwidgetGUI.h:86
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::resized
void resized() override
Definition
KwidgetGUI.cpp:45
krotos::Kwidget
Definition
Kwidget.h:8
krotos
Definition
AirAbsorptionFilter.cpp:2
krotos::KwidgetGUI_Scaledadsr::ComponentIds::SliderAttack
static const String SliderAttack
Definition
KwidgetGUI_Scaledadsr.h:16
krotos::KwidgetGUI_Scaledadsr::ComponentIds::SliderSustain
static const String SliderSustain
Definition
KwidgetGUI_Scaledadsr.h:18
krotos::KwidgetGUI_Scaledadsr::ComponentIds::SliderAmount
static const String SliderAmount
Definition
KwidgetGUI_Scaledadsr.h:20
krotos::KwidgetGUI_Scaledadsr::ComponentIds::SliderDecay
static const String SliderDecay
Definition
KwidgetGUI_Scaledadsr.h:17
krotos::KwidgetGUI_Scaledadsr::ComponentIds::SliderRelease
static const String SliderRelease
Definition
KwidgetGUI_Scaledadsr.h:19
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderBottomM
const Rectangle< int > rotSliderBottomM
Definition
KwidgetGUI_Scaledadsr.h:33
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderTopL
const Rectangle< int > rotSliderTopL
Definition
KwidgetGUI_Scaledadsr.h:30
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderTopM
const Rectangle< int > rotSliderTopM
Definition
KwidgetGUI_Scaledadsr.h:32
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderBottomL
const Rectangle< int > rotSliderBottomL
Definition
KwidgetGUI_Scaledadsr.h:31
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderTopR
const Rectangle< int > rotSliderTopR
Definition
KwidgetGUI_Scaledadsr.h:34
krotos_kwidget
kwidgets
scaledAdsr
KwidgetGUI_Scaledadsr.cpp
Generated by
1.12.0