Audacity  2.2.0
LabelGlyphHandle Class Referencefinal

#include <LabelGlyphHandle.h>

Inheritance diagram for LabelGlyphHandle:
LabelDefaultClickHandle UIHandle

Public Member Functions

 LabelGlyphHandle (const std::shared_ptr< LabelTrack > &pLT, const wxRect &rect, const LabelTrackHit &hit)
 
LabelGlyphHandleoperator= (const LabelGlyphHandle &)=default
 
virtual ~LabelGlyphHandle ()
 
void Enter (bool forward) override
 
Result Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
 
Result Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
 
HitTestPreview Preview (const TrackPanelMouseState &state, const AudacityProject *pProject) override
 
Result Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
 
Result Cancel (AudacityProject *pProject) override
 
bool StopsOnKeystroke () override
 
- Public Member Functions inherited from LabelDefaultClickHandle
 LabelDefaultClickHandle ()
 
virtual ~LabelDefaultClickHandle ()
 
LabelDefaultClickHandleoperator= (const LabelDefaultClickHandle &)=default
 
- Public Member Functions inherited from UIHandle
virtual ~UIHandle ()=0
 
virtual bool HasRotation () const
 
virtual bool Rotate (bool forward)
 
virtual bool HasEscape () const
 
virtual bool Escape ()
 
virtual void DrawExtras (DrawingPass pass, wxDC *dc, const wxRegion &updateRegion, const wxRect &panelRect)
 
virtual void OnProjectChange (AudacityProject *pProject)
 
Result GetChangeHighlight () const
 
void SetChangeHighlight (Result val)
 

Static Public Member Functions

static UIHandlePtr HitTest (std::weak_ptr< LabelGlyphHandle > &holder, const wxMouseState &state, const std::shared_ptr< LabelTrack > &pLT, const wxRect &rect)
 
static UIHandle::Result NeedChangeHighlight (const LabelGlyphHandle &oldState, const LabelGlyphHandle &newState)
 
- Static Public Member Functions inherited from UIHandle
static UIHandle::Result NeedChangeHighlight (const UIHandle &, const UIHandle &)
 

Public Attributes

LabelTrackHit mHit {}
 

Static Private Member Functions

static HitTestPreview HitPreview (bool hitCenter)
 

Private Attributes

std::shared_ptr< LabelTrackmpLT {}
 
wxRect mRect {}
 

Additional Inherited Members

- Public Types inherited from UIHandle
enum  DrawingPass { Cells, Panel }
 
using Result = unsigned
 
using Cell = TrackPanelCell
 
- Protected Attributes inherited from UIHandle
Result mChangeHighlight { 0 }
 

Constructor & Destructor Documentation

LabelGlyphHandle::LabelGlyphHandle ( const std::shared_ptr< LabelTrack > &  pLT,
const wxRect &  rect,
const LabelTrackHit hit 
)
explicit
LabelGlyphHandle::~LabelGlyphHandle ( )
virtual

Member Function Documentation

UIHandle::Result LabelGlyphHandle::Cancel ( AudacityProject pProject)
overridevirtual
void LabelGlyphHandle::Enter ( bool  forward)
overridevirtual

Reimplemented from UIHandle.

References UIHandle::mChangeHighlight, and RefreshCode::RefreshCell.

HitTestPreview LabelGlyphHandle::HitPreview ( bool  hitCenter)
staticprivate

References _(), and HitTest().

Referenced by Preview().

UIHandlePtr LabelGlyphHandle::HitTest ( std::weak_ptr< LabelGlyphHandle > &  holder,
const wxMouseState &  state,
const std::shared_ptr< LabelTrack > &  pLT,
const wxRect &  rect 
)
static
UIHandle::Result LabelGlyphHandle::NeedChangeHighlight ( const LabelGlyphHandle oldState,
const LabelGlyphHandle newState 
)
static
LabelGlyphHandle& LabelGlyphHandle::operator= ( const LabelGlyphHandle )
default
HitTestPreview LabelGlyphHandle::Preview ( const TrackPanelMouseState state,
const AudacityProject pProject 
)
overridevirtual

Implements UIHandle.

References HitPreview(), LabelTrackHit::mEdge, and mHit.

bool LabelGlyphHandle::StopsOnKeystroke ( )
inlineoverridevirtual

Reimplemented from UIHandle.

Member Data Documentation

LabelTrackHit LabelGlyphHandle::mHit {}
std::shared_ptr<LabelTrack> LabelGlyphHandle::mpLT {}
private

Referenced by Click(), Drag(), and Release().

wxRect LabelGlyphHandle::mRect {}
private

Referenced by Click(), Drag(), and Release().


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