Audacity  2.2.0
EffectAutoDuckPanel Class Referencefinal

#include <AutoDuck.h>

Inheritance diagram for EffectAutoDuckPanel:
wxTabTraversalWrapper< Base >

Public Member Functions

 EffectAutoDuckPanel (wxWindow *parent, EffectAutoDuck *effect)
 
virtual ~EffectAutoDuckPanel ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Types

enum  EControlPoint {
  innerFadeDown = 0, outerFadeDown, innerFadeUp, outerFadeUp,
  duckAmount, none = 99
}
 

Private Member Functions

bool AcceptsFocus () const override
 
bool AcceptsFocusFromKeyboard () const override
 
void OnPaint (wxPaintEvent &evt)
 
void OnMouseCaptureChanged (wxMouseCaptureChangedEvent &evt)
 
void OnMouseCaptureLost (wxMouseCaptureLostEvent &evt)
 
void OnLeftDown (wxMouseEvent &evt)
 
void OnLeftUp (wxMouseEvent &evt)
 
void OnMotion (wxMouseEvent &evt)
 
void ResetControlPoints ()
 
EControlPoint GetNearestControlPoint (const wxPoint &pt)
 

Private Attributes

wxWindow * mParent
 
EffectAutoDuckmEffect
 
std::unique_ptr< wxBitmap > mBackgroundBitmap
 
EControlPoint mCurrentControlPoint
 
wxPoint mControlPoints [AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
 
wxPoint mMoveStartControlPoints [AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
 
wxPoint mMouseDownPoint
 
bool mControlPointMoveActivated
 

Member Enumeration Documentation

Enumerator
innerFadeDown 
outerFadeDown 
innerFadeUp 
outerFadeUp 
duckAmount 
none 

Constructor & Destructor Documentation

EffectAutoDuckPanel::EffectAutoDuckPanel ( wxWindow *  parent,
EffectAutoDuck effect 
)
EffectAutoDuckPanel::~EffectAutoDuckPanel ( )
virtual

Member Function Documentation

bool EffectAutoDuckPanel::AcceptsFocus ( ) const
inlineoverrideprivate
bool EffectAutoDuckPanel::AcceptsFocusFromKeyboard ( ) const
inlineoverrideprivate
EffectAutoDuckPanel::EControlPoint EffectAutoDuckPanel::GetNearestControlPoint ( const wxPoint &  pt)
private
void EffectAutoDuckPanel::OnLeftUp ( wxMouseEvent &  evt)
private

References mCurrentControlPoint, and none.

void EffectAutoDuckPanel::OnMouseCaptureChanged ( wxMouseCaptureChangedEvent &  evt)
private

References mCurrentControlPoint, and none.

void EffectAutoDuckPanel::OnMouseCaptureLost ( wxMouseCaptureLostEvent &  evt)
private

References mCurrentControlPoint, and none.

void EffectAutoDuckPanel::ResetControlPoints ( )
private

Member Data Documentation

std::unique_ptr<wxBitmap> EffectAutoDuckPanel::mBackgroundBitmap
private

Referenced by OnPaint().

bool EffectAutoDuckPanel::mControlPointMoveActivated
private

Referenced by OnLeftDown(), and OnMotion().

wxPoint EffectAutoDuckPanel::mControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
private
EControlPoint EffectAutoDuckPanel::mCurrentControlPoint
private
EffectAutoDuck* EffectAutoDuckPanel::mEffect
private

Referenced by OnMotion(), and OnPaint().

wxPoint EffectAutoDuckPanel::mMouseDownPoint
private

Referenced by OnLeftDown(), and OnMotion().

wxPoint EffectAutoDuckPanel::mMoveStartControlPoints[AUTO_DUCK_PANEL_NUM_CONTROL_POINTS]
private

Referenced by OnLeftDown().

wxWindow* EffectAutoDuckPanel::mParent
private

The documentation for this class was generated from the following files: