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:
[legend]
Collaboration diagram for anonymous_namespace{TrackPanel.cpp}::EmptyCell:
[legend]

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 1185 of file TrackPanel.cpp.

Member Function Documentation

◆ DoFindTrack()

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

Implements CommonTrackPanelCell.

Definition at line 1189 of file TrackPanel.cpp.

1189{ return {}; }

◆ Draw()

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

Reimplemented from TrackPanelDrawable.

Definition at line 1197 of file TrackPanel.cpp.

1200 {
1201 if ( iPass == TrackArtist::PassMargins ) {
1202 // Draw a margin area of TrackPanel
1203 auto dc = &context.dc;
1204
1205 AColor::TrackPanelBackground( dc, false );
1206 dc->DrawRectangle( rect );
1207 }
1208 }
static void TrackPanelBackground(wxDC *dc, bool selected)
Definition: AColor.cpp:446

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  
)
inlineoverridevirtual

Implements TrackPanelCell.

Definition at line 1186 of file TrackPanel.cpp.

1188 { return {}; }

◆ Instance()

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

Definition at line 1190 of file TrackPanel.cpp.

1191 {
1192 static auto instance = std::make_shared< EmptyCell >();
1193 return instance;
1194 }

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