Krotos Modules 3
Loading...
Searching...
No Matches
KwidgetGUI_Scaledadsr.h
Go to the documentation of this file.
1
namespace
krotos
2
{
3
class
KwidgetGUI_Scaledadsr
:
public
KwidgetGUI
4
{
5
public
:
6
using
Parameters
=
Kwidget_Scaledadsr::Parameters
;
7
9
KwidgetGUI_Scaledadsr
(
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
static
const
String
SliderAmount
;
21
};
22
23
private
:
24
struct
Layout
25
{
26
const
int
rotSliderTopRowY
{8};
27
const
int
rotSliderBottomRowY
{89};
28
const
int
rotSliderWidth
{70};
29
const
int
rotSliderHeight
{53};
30
const
Rectangle<int>
rotSliderTopL
{5,
rotSliderTopRowY
,
rotSliderWidth
,
rotSliderHeight
};
31
const
Rectangle<int>
rotSliderBottomL
{5,
rotSliderBottomRowY
,
rotSliderWidth
,
rotSliderHeight
};
32
const
Rectangle<int>
rotSliderTopM
{103,
rotSliderTopRowY
,
rotSliderWidth
,
rotSliderHeight
};
33
const
Rectangle<int>
rotSliderBottomM
{103,
rotSliderBottomRowY
,
rotSliderWidth
,
rotSliderHeight
};
34
const
Rectangle<int>
rotSliderTopR
{201,
rotSliderTopRowY
,
rotSliderWidth
,
rotSliderHeight
};
35
const
Rectangle<int>
rotSliderBottomR
{201,
rotSliderBottomRowY
,
rotSliderWidth
,
rotSliderHeight
};
36
}
m_layout
;
37
38
AttachedSlider
m_adsrAttack
{
Parameters::Attack
};
39
AttachedSlider
m_adsrDecay
{
Parameters::Decay
};
40
AttachedSlider
m_adsrSustain
{
Parameters::Sustain
};
41
AttachedSlider
m_adsrRelease
{
Parameters::Release
};
42
AttachedSlider
m_adsrAmount
{
Parameters::Amount
};
43
44
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(
KwidgetGUI_Scaledadsr
)
45
};
46
}
// 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_Scaledadsr
Definition
KwidgetGUI_Scaledadsr.h:4
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::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::Kwidget
Definition
Kwidget.h:8
krotos
Definition
AirAbsorptionFilter.cpp:2
krotos::Kwidget_Scaledadsr::Parameters
Definition
Kwidget_Scaledadsr.h:7
krotos::Kwidget_Scaledadsr::Parameters::Sustain
static const String Sustain
Definition
Kwidget_Scaledadsr.h:9
krotos::Kwidget_Scaledadsr::Parameters::Amount
static const String Amount
Definition
Kwidget_Scaledadsr.h:12
krotos::Kwidget_Scaledadsr::Parameters::Attack
static const String Attack
Definition
Kwidget_Scaledadsr.h:8
krotos::Kwidget_Scaledadsr::Parameters::Release
static const String Release
Definition
Kwidget_Scaledadsr.h:11
krotos::Kwidget_Scaledadsr::Parameters::Decay
static const String Decay
Definition
Kwidget_Scaledadsr.h:10
krotos::KwidgetGUI_Scaledadsr::ComponentIds
Definition
KwidgetGUI_Scaledadsr.h:15
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
Definition
KwidgetGUI_Scaledadsr.h:25
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::rotSliderTopRowY
const int rotSliderTopRowY
Definition
KwidgetGUI_Scaledadsr.h:26
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::KwidgetGUI_Scaledadsr::Layout::rotSliderBottomR
const Rectangle< int > rotSliderBottomR
Definition
KwidgetGUI_Scaledadsr.h:35
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderWidth
const int rotSliderWidth
Definition
KwidgetGUI_Scaledadsr.h:28
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderBottomRowY
const int rotSliderBottomRowY
Definition
KwidgetGUI_Scaledadsr.h:27
krotos::KwidgetGUI_Scaledadsr::Layout::rotSliderHeight
const int rotSliderHeight
Definition
KwidgetGUI_Scaledadsr.h:29
krotos_kwidget
kwidgets
scaledAdsr
KwidgetGUI_Scaledadsr.h
Generated by
1.12.0