17#pragma GCC diagnostic ignored "-Wparentheses"
18#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
19#elif defined(__clang__)
20#pragma clang diagnostic ignored "-Wparentheses"
21#pragma clang diagnostic ignored "-Wdeprecated-declarations"
25#include <wx/dcbuffer.h>
36) : wxWindow{ parent, wxID_ANY, wxDefaultPosition, wxDefaultSize,
42 SetBackgroundColour(*wxWHITE);
43 SetMinSize({ 20, 20 });
69 std::unique_ptr<wxDC> dc {wxAutoBufferedPaintDCFactory(
this)};
72 wxRect r = GetClientRect();
73 wxCoord x = r.GetLeft();
74 wxCoord y = r.GetTop();
75 wxCoord w = r.GetWidth();
76 wxCoord h = r.GetHeight();
83 dc->SetPen(*wxTRANSPARENT_PEN);
84 dc->SetBrush(wxColour(100, 100, 220));
std::shared_ptr< LV2ControlPort > LV2ControlPortPtr
UI widget that watches a floating point location and then updates a bar.
void OnErase(wxEraseEvent &evt)
const LV2ControlPortPtr mControlPort
void OnPaint(wxPaintEvent &evt)
void OnSize(wxSizeEvent &evt)
void OnIdle(wxIdleEvent &evt)
virtual ~LV2EffectMeter()