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 &) PROHIBITED
 
TrackPanelCelloperator= (const TrackPanelCell &) PROHIBITED
 
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 1223 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 1227 of file TrackPanel.cpp.

1227{ return {}; }

◆ Draw()

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

Reimplemented from TrackPanelDrawable.

Definition at line 1235 of file TrackPanel.cpp.

1238 {
1239 if ( iPass == TrackArtist::PassMargins ) {
1240 // Draw a margin area of TrackPanel
1241 auto dc = &context.dc;
1242
1243 AColor::TrackPanelBackground( dc, false );
1244 dc->DrawRectangle( rect );
1245 }
1246 }
static void TrackPanelBackground(wxDC *dc, bool selected)
Definition: AColor.cpp:454

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

1226 { return {}; }

◆ Instance()

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

Definition at line 1228 of file TrackPanel.cpp.

1229 {
1230 static auto instance = std::make_shared< EmptyCell >();
1231 return instance;
1232 }

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