Audacity  2.2.0
MinimizeButtonHandle Class Referencefinal

#include <TrackButtonHandles.h>

Inheritance diagram for MinimizeButtonHandle:
ButtonHandle UIHandle

Public Member Functions

 MinimizeButtonHandle (const std::shared_ptr< Track > &pTrack, const wxRect &rect)
MinimizeButtonHandleoperator= (const MinimizeButtonHandle &)=default
virtual ~MinimizeButtonHandle ()
- Public Member Functions inherited from ButtonHandle
std::shared_ptr< TrackGetTrack () const
bool IsClicked () const
- 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 bool StopsOnKeystroke ()
virtual void OnProjectChange (AudacityProject *pProject)
Result GetChangeHighlight () const
void SetChangeHighlight (Result val)

Static Public Member Functions

static UIHandlePtr HitTest (std::weak_ptr< MinimizeButtonHandle > &holder, const wxMouseState &state, const wxRect &rect, TrackPanelCell *pCell)
- Static Public Member Functions inherited from UIHandle
static UIHandle::Result NeedChangeHighlight (const UIHandle &, const UIHandle &)

Protected Member Functions

Result CommitChanges (const wxMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
wxString Tip (const wxMouseState &state) const override
- Protected Member Functions inherited from ButtonHandle
 ButtonHandle (const std::shared_ptr< Track > &pTrack, const wxRect &rect)
ButtonHandleoperator= (const ButtonHandle &)=default
virtual ~ButtonHandle ()
void Enter (bool forward) finaloverride
Result Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) finaloverride
Result Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) finaloverride
HitTestPreview Preview (const TrackPanelMouseState &state, const AudacityProject *pProject) finaloverride
Result Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) finaloverride
Result Cancel (AudacityProject *pProject) finaloverride

Private Member Functions

 MinimizeButtonHandle (const MinimizeButtonHandle &)=delete

Additional Inherited Members

- Public Types inherited from UIHandle
enum  DrawingPass { Cells, Panel }
using Result = unsigned
using Cell = TrackPanelCell
- Protected Attributes inherited from ButtonHandle
std::weak_ptr< TrackmpTrack
wxRect mRect
bool mWasIn { true }
bool mIsClicked {}
- Protected Attributes inherited from UIHandle
Result mChangeHighlight { 0 }

Constructor & Destructor Documentation

MinimizeButtonHandle::MinimizeButtonHandle ( const MinimizeButtonHandle )
MinimizeButtonHandle::MinimizeButtonHandle ( const std::shared_ptr< Track > &  pTrack,
const wxRect &  rect 
MinimizeButtonHandle::~MinimizeButtonHandle ( )

Member Function Documentation

UIHandle::Result MinimizeButtonHandle::CommitChanges ( const wxMouseEvent &  event,
AudacityProject pProject,
wxWindow *  pParent 
UIHandlePtr MinimizeButtonHandle::HitTest ( std::weak_ptr< MinimizeButtonHandle > &  holder,
const wxMouseState &  state,
const wxRect &  rect,
TrackPanelCell pCell 
MinimizeButtonHandle& MinimizeButtonHandle::operator= ( const MinimizeButtonHandle )
wxString MinimizeButtonHandle::Tip ( const wxMouseState &  state) const

Implements ButtonHandle.

References _(), and ButtonHandle::GetTrack().

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