Definition at line 48 of file LadspaEditor.cpp.
◆ LadspaEffectMeter()
LadspaEffectMeter::LadspaEffectMeter |
( |
wxWindow * |
parent, |
|
|
const float & |
val, |
|
|
float |
min, |
|
|
float |
max |
|
) |
| |
Definition at line 84 of file LadspaEditor.cpp.
85: wxWindow{ parent, wxID_ANY, wxDefaultPosition, wxDefaultSize,
86 wxSIMPLE_BORDER },
88{
92 SetBackgroundColour(*wxWHITE);
93 SetMinSize({ 20, 20 });
94}
◆ ~LadspaEffectMeter()
LadspaEffectMeter::~LadspaEffectMeter |
( |
| ) |
|
|
virtual |
◆ Disconnect()
void LadspaEffectMeter::Disconnect |
( |
| ) |
|
|
inline |
◆ OnErase()
void LadspaEffectMeter::OnErase |
( |
wxEraseEvent & |
evt | ) |
|
|
private |
◆ OnIdle()
void LadspaEffectMeter::OnIdle |
( |
wxIdleEvent & |
evt | ) |
|
|
private |
◆ OnPaint()
void LadspaEffectMeter::OnPaint |
( |
wxPaintEvent & |
evt | ) |
|
|
private |
Definition at line 114 of file LadspaEditor.cpp.
115{
117 return;
118
119 wxPaintDC dc(this);
120
121
122 wxRect r = GetClientRect();
123 wxCoord x = r.GetLeft();
124 wxCoord y = r.GetTop();
125 wxCoord w = r.GetWidth();
126 wxCoord h = r.GetHeight();
127
128
135
136
137 dc.SetPen(*wxTRANSPARENT_PEN);
138 dc.SetBrush(wxColour(100, 100, 220));
139 dc.Clear();
140 dc.DrawRectangle(x, y, (w * (val / fabs(
mMax -
mMin))), h);
141
143}
References mConnected, mLastValue, mMax, mMin, and mVal.
◆ OnSize()
void LadspaEffectMeter::OnSize |
( |
wxSizeEvent & |
evt | ) |
|
|
private |
◆ mConnected
bool LadspaEffectMeter::mConnected { true } |
|
private |
◆ mLastValue
float LadspaEffectMeter::mLastValue |
|
private |
◆ mMax
float LadspaEffectMeter::mMax |
|
private |
◆ mMin
float LadspaEffectMeter::mMin |
|
private |
◆ mVal
const float& LadspaEffectMeter::mVal |
|
private |
The documentation for this class was generated from the following file: