Krotos Modules 3
Loading...
Searching...
No Matches
KwidgetGUI_Adsr.h
Go to the documentation of this file.
1
namespace
krotos
2
{
3
class
KwidgetGUI_Adsr
:
public
KwidgetGUI
4
{
5
public
:
6
using
Parameters
=
Kwidget_Adsr::Parameters
;
7
9
KwidgetGUI_Adsr
(
Kwidget
& owner);
10
12
void
resized
()
override
;
13
14
struct
ComponentIds
15
{
16
static
const
String
SliderAttack
;
17
static
const
String
SliderDecay
;
18
static
const
String
SliderSustain
;
19
static
const
String
SliderRelease
;
20
};
21
22
private
:
23
struct
Layout
24
{
25
const
int
rotSliderTopRowY
{8};
26
const
int
rotSliderBottomRowY
{89};
27
const
int
rotSliderWidth
{70};
28
const
int
rotSliderHeight
{53};
29
const
Rectangle<int>
rotSliderTopL
{5,
rotSliderTopRowY
,
rotSliderWidth
,
rotSliderHeight
};
30
const
Rectangle<int>
rotSliderBottomL
{5,
rotSliderBottomRowY
,
rotSliderWidth
,
rotSliderHeight
};
31
const
Rectangle<int>
rotSliderTopM
{103,
rotSliderTopRowY
,
rotSliderWidth
,
rotSliderHeight
};
32
const
Rectangle<int>
rotSliderBottomM
{103,
rotSliderBottomRowY
,
rotSliderWidth
,
rotSliderHeight
};
33
const
Rectangle<int>
rotSliderTopR
{201,
rotSliderTopRowY
,
rotSliderWidth
,
rotSliderHeight
};
34
const
Rectangle<int>
rotSliderBottomR
{201,
rotSliderBottomRowY
,
rotSliderWidth
,
rotSliderHeight
};
35
}
m_layout
;
36
37
AttachedSlider
m_adsrAttack
{
Parameters::Attack
};
38
AttachedSlider
m_adsrDecay
{
Parameters::Decay
};
39
AttachedSlider
m_adsrSustain
{
Parameters::Sustain
};
40
AttachedSlider
m_adsrRelease
{
Parameters::Release
};
41
42
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(
KwidgetGUI_Adsr
)
43
};
44
}
// namespace krotos
krotos::AttachedSlider
This class combines a Slider, Label, and a SliderAttachment to simplify the process of adding knobs t...
Definition
AttachedSlider.h:10
krotos::KwidgetGUI_Adsr
Definition
KwidgetGUI_Adsr.h:4
krotos::KwidgetGUI_Adsr::KwidgetGUI_Adsr
KwidgetGUI_Adsr(Kwidget &owner)
Definition
KwidgetGUI_Adsr.cpp:8
krotos::KwidgetGUI_Adsr::m_adsrDecay
AttachedSlider m_adsrDecay
Definition
KwidgetGUI_Adsr.h:38
krotos::KwidgetGUI_Adsr::m_adsrSustain
AttachedSlider m_adsrSustain
Definition
KwidgetGUI_Adsr.h:39
krotos::KwidgetGUI_Adsr::m_layout
struct krotos::KwidgetGUI_Adsr::Layout m_layout
krotos::KwidgetGUI_Adsr::m_adsrAttack
AttachedSlider m_adsrAttack
Definition
KwidgetGUI_Adsr.h:37
krotos::KwidgetGUI_Adsr::m_adsrRelease
AttachedSlider m_adsrRelease
Definition
KwidgetGUI_Adsr.h:40
krotos::KwidgetGUI_Adsr::resized
void resized() override
Definition
KwidgetGUI_Adsr.cpp:25
krotos::KwidgetGUI
Interface for a UI Component that controls a KwidgetProcessor.
Definition
KwidgetGUI.h:24
krotos::Kwidget
Definition
Kwidget.h:8
krotos
Definition
AirAbsorptionFilter.cpp:2
krotos::Kwidget_Adsr::Parameters
Definition
Kwidget_Adsr.h:7
krotos::Kwidget_Adsr::Parameters::Release
static const String Release
Definition
Kwidget_Adsr.h:11
krotos::Kwidget_Adsr::Parameters::Sustain
static const String Sustain
Definition
Kwidget_Adsr.h:9
krotos::Kwidget_Adsr::Parameters::Decay
static const String Decay
Definition
Kwidget_Adsr.h:10
krotos::Kwidget_Adsr::Parameters::Attack
static const String Attack
Definition
Kwidget_Adsr.h:8
krotos::KwidgetGUI_Adsr::ComponentIds
Definition
KwidgetGUI_Adsr.h:15
krotos::KwidgetGUI_Adsr::ComponentIds::SliderDecay
static const String SliderDecay
Definition
KwidgetGUI_Adsr.h:17
krotos::KwidgetGUI_Adsr::ComponentIds::SliderRelease
static const String SliderRelease
Definition
KwidgetGUI_Adsr.h:19
krotos::KwidgetGUI_Adsr::ComponentIds::SliderAttack
static const String SliderAttack
Definition
KwidgetGUI_Adsr.h:16
krotos::KwidgetGUI_Adsr::ComponentIds::SliderSustain
static const String SliderSustain
Definition
KwidgetGUI_Adsr.h:18
krotos::KwidgetGUI_Adsr::Layout
Definition
KwidgetGUI_Adsr.h:24
krotos::KwidgetGUI_Adsr::Layout::rotSliderBottomL
const Rectangle< int > rotSliderBottomL
Definition
KwidgetGUI_Adsr.h:30
krotos::KwidgetGUI_Adsr::Layout::rotSliderTopR
const Rectangle< int > rotSliderTopR
Definition
KwidgetGUI_Adsr.h:33
krotos::KwidgetGUI_Adsr::Layout::rotSliderTopM
const Rectangle< int > rotSliderTopM
Definition
KwidgetGUI_Adsr.h:31
krotos::KwidgetGUI_Adsr::Layout::rotSliderBottomM
const Rectangle< int > rotSliderBottomM
Definition
KwidgetGUI_Adsr.h:32
krotos::KwidgetGUI_Adsr::Layout::rotSliderWidth
const int rotSliderWidth
Definition
KwidgetGUI_Adsr.h:27
krotos::KwidgetGUI_Adsr::Layout::rotSliderTopL
const Rectangle< int > rotSliderTopL
Definition
KwidgetGUI_Adsr.h:29
krotos::KwidgetGUI_Adsr::Layout::rotSliderBottomRowY
const int rotSliderBottomRowY
Definition
KwidgetGUI_Adsr.h:26
krotos::KwidgetGUI_Adsr::Layout::rotSliderHeight
const int rotSliderHeight
Definition
KwidgetGUI_Adsr.h:28
krotos::KwidgetGUI_Adsr::Layout::rotSliderTopRowY
const int rotSliderTopRowY
Definition
KwidgetGUI_Adsr.h:25
krotos::KwidgetGUI_Adsr::Layout::rotSliderBottomR
const Rectangle< int > rotSliderBottomR
Definition
KwidgetGUI_Adsr.h:34
krotos_kwidget
kwidgets
adsr
KwidgetGUI_Adsr.h
Generated by
1.12.0