Audacity 3.2.0
Public Member Functions | Static Public Member Functions | List of all members
anonymous_namespace{TrackPanel.cpp}::EmptyCell Struct Referencefinal
Inheritance diagram for anonymous_namespace{TrackPanel.cpp}::EmptyCell:
Collaboration diagram for anonymous_namespace{TrackPanel.cpp}::EmptyCell:

Public Member Functions

std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &, const AudacityProject *) override
virtual std::shared_ptr< TrackDoFindTrack () override
void Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
- Public Member Functions inherited from CommonTrackPanelCell
 CommonTrackPanelCell ()
virtual ~CommonTrackPanelCell ()=0
HitTestPreview DefaultPreview (const TrackPanelMouseState &, const AudacityProject *) override
std::shared_ptr< TrackFindTrack ()
std::shared_ptr< const TrackFindTrack () const
virtual std::vector< MenuItemGetMenuItems (const wxRect &rect, const wxPoint *pPosition, AudacityProject *pProject)
 Return a list of items for DoContextMenu() (empties for separators) More...
- Public Member Functions inherited from TrackPanelCell
 TrackPanelCell ()=default
 TrackPanelCell (const TrackPanelCell &)=delete
TrackPanelCelloperator= (const TrackPanelCell &)=delete
virtual ~TrackPanelCell ()=0
virtual HitTestPreview DefaultPreview (const TrackPanelMouseState &state, const AudacityProject *pProject)
virtual std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject)=0
virtual unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject)
virtual std::shared_ptr< TrackPanelCellContextMenuDelegate ()
virtual unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject)
virtual unsigned CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
virtual unsigned KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
virtual unsigned KeyUp (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
virtual unsigned Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
virtual unsigned LoseFocus (AudacityProject *project)
- Public Member Functions inherited from TrackPanelNode
 TrackPanelNode ()
virtual ~TrackPanelNode ()=0
- Public Member Functions inherited from TrackPanelDrawable
virtual ~TrackPanelDrawable ()=0
virtual void Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)
virtual wxRect DrawingArea (TrackPanelDrawingContext &context, const wxRect &rect, const wxRect &panelRect, unsigned iPass)

Static Public Member Functions

static std::shared_ptr< EmptyCellInstance ()
- Static Public Member Functions inherited from TrackPanelDrawable
static wxRect MaximizeWidth (const wxRect &rect, const wxRect &panelRect)
static wxRect MaximizeHeight (const wxRect &rect, const wxRect &panelRect)

Additional Inherited Members

- Protected Member Functions inherited from CommonTrackPanelCell
virtual std::shared_ptr< TrackDoFindTrack ()=0
unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject) override
unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override

Detailed Description

Definition at line 1106 of file TrackPanel.cpp.

Member Function Documentation

◆ DoFindTrack()

virtual std::shared_ptr< Track > anonymous_namespace{TrackPanel.cpp}::EmptyCell::DoFindTrack ( )

Implements CommonTrackPanelCell.

Definition at line 1110 of file TrackPanel.cpp.

1110{ return {}; }

◆ Draw()

void anonymous_namespace{TrackPanel.cpp}::EmptyCell::Draw ( TrackPanelDrawingContext context,
const wxRect &  rect,
unsigned  iPass 

Reimplemented from TrackPanelDrawable.

Definition at line 1118 of file TrackPanel.cpp.

1121 {
1122 if ( iPass == TrackArtist::PassMargins ) {
1123 // Draw a margin area of TrackPanel
1124 auto dc = &context.dc;
1126 AColor::TrackPanelBackground( dc, false );
1127 dc->DrawRectangle( rect );
1128 }
1129 }
static void TrackPanelBackground(wxDC *dc, bool selected)
Definition: AColor.cpp:436

References TrackPanelDrawingContext::dc, TrackArtist::PassMargins, and AColor::TrackPanelBackground().

Here is the call graph for this function:

◆ HitTest()

std::vector< UIHandlePtr > anonymous_namespace{TrackPanel.cpp}::EmptyCell::HitTest ( const TrackPanelMouseState ,
const AudacityProject  

Implements TrackPanelCell.

Definition at line 1107 of file TrackPanel.cpp.

1109 { return {}; }

◆ Instance()

static std::shared_ptr< EmptyCell > anonymous_namespace{TrackPanel.cpp}::EmptyCell::Instance ( )

Definition at line 1111 of file TrackPanel.cpp.

1112 {
1113 static auto instance = std::make_shared< EmptyCell >();
1114 return instance;
1115 }

The documentation for this struct was generated from the following file: