UI widget that watches a floating point location and then updates a bar.  
 More...
#include <LV2EffectMeter.h>
UI widget that watches a floating point location and then updates a bar. 
Definition at line 22 of file LV2EffectMeter.h.
◆ LV2EffectMeter()
      
        
          | LV2EffectMeter::LV2EffectMeter | ( | wxWindow * | parent, | 
        
          |  |  | const LV2ControlPortPtr | ctrl, | 
        
          |  |  | const float & | value | 
        
          |  | ) |  |  | 
      
 
Definition at line 34 of file LV2EffectMeter.cpp.
   36   : wxWindow{ parent, wxID_ANY, wxDefaultPosition, wxDefaultSize,
   37      wxSIMPLE_BORDER }
   40{
   42   SetBackgroundColour(*wxWHITE);
   43   SetMinSize({ 20, 20 });
   44}
const LV2ControlPortPtr mControlPort
 
 
◆ ~LV2EffectMeter()
  
  | 
        
          | LV2EffectMeter::~LV2EffectMeter | ( |  | ) |  |  | virtual | 
 
 
◆ Disconnect()
  
  | 
        
          | void LV2EffectMeter::Disconnect | ( |  | ) |  |  | inline | 
 
 
◆ OnErase()
  
  | 
        
          | void LV2EffectMeter::OnErase | ( | wxEraseEvent & | evt | ) |  |  | private | 
 
 
◆ OnIdle()
  
  | 
        
          | void LV2EffectMeter::OnIdle | ( | wxIdleEvent & | evt | ) |  |  | private | 
 
 
◆ OnPaint()
  
  | 
        
          | void LV2EffectMeter::OnPaint | ( | wxPaintEvent & | evt | ) |  |  | private | 
 
Definition at line 64 of file LV2EffectMeter.cpp.
   65{
   67      return;
   68 
   69   std::unique_ptr<wxDC> dc {wxAutoBufferedPaintDCFactory(this)};
   70 
   71   
   72   wxRect r = GetClientRect();
   73   wxCoord x = r.GetLeft();
   74   wxCoord y = r.GetTop();
   75   wxCoord w = r.GetWidth();
   76   wxCoord h = r.GetHeight();
   77 
   78   
   81 
   82   
   83   dc->SetPen(*wxTRANSPARENT_PEN);
   84   dc->SetBrush(wxColour(100, 100, 220));
   85 
   86   dc->Clear();
   88 
   90}
References mConnected, mControlPort, mLastValue, and mValue.
 
 
◆ OnSize()
  
  | 
        
          | void LV2EffectMeter::OnSize | ( | wxSizeEvent & | evt | ) |  |  | private | 
 
 
◆ mConnected
  
  | 
        
          | bool LV2EffectMeter::mConnected { true } |  | private | 
 
 
◆ mControlPort
◆ mLastValue
  
  | 
        
          | float LV2EffectMeter::mLastValue |  | private | 
 
 
◆ mValue
  
  | 
        
          | const float& LV2EffectMeter::mValue |  | private | 
 
 
The documentation for this class was generated from the following files: