Audacity  3.0.3
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
 
- Public Member Functions inherited from TrackPanelCell
 TrackPanelCell ()=default
 
 TrackPanelCell (const TrackPanelCell &) PROHIBITED
 
TrackPanelCelloperator= (const TrackPanelCell &) PROHIBITED
 
virtual ~TrackPanelCell ()=0
 
virtual std::shared_ptr< TrackPanelCellContextMenuDelegate ()
 
virtual unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, 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)
 
- Public Member Functions inherited from TrackPanelNode
 TrackPanelNode ()
 
virtual ~TrackPanelNode ()=0
 
- Public Member Functions inherited from TrackPanelDrawable
virtual ~TrackPanelDrawable ()=0
 
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 CommonTrackPanelCell
static Hook InstallMouseWheelHook (const Hook &hook)
 
- 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

- Public Types inherited from CommonTrackPanelCell
using Hook = std::function< unsigned(const TrackPanelMouseEvent &evt, AudacityProject *pProject) >
 
- Protected Member Functions inherited from CommonTrackPanelCell
unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject) override
 

Detailed Description

Definition at line 1160 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 1164 of file TrackPanel.cpp.

1164 { return {}; }

◆ Draw()

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

Reimplemented from TrackPanelDrawable.

Definition at line 1172 of file TrackPanel.cpp.

1175  {
1176  if ( iPass == TrackArtist::PassMargins ) {
1177  // Draw a margin area of TrackPanel
1178  auto dc = &context.dc;
1179 
1180  AColor::TrackPanelBackground( dc, false );
1181  dc->DrawRectangle( rect );
1182  }
1183  }

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

1163  { return {}; }

◆ Instance()

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

Definition at line 1165 of file TrackPanel.cpp.

1166  {
1167  static auto instance = std::make_shared< EmptyCell >();
1168  return instance;
1169  }

The documentation for this struct was generated from the following file:
AColor::TrackPanelBackground
static void TrackPanelBackground(wxDC *dc, bool selected)
Definition: AColor.cpp:365
TrackPanelDrawingContext::dc
wxDC & dc
Definition: TrackPanelDrawingContext.h:23
TrackArtist::PassMargins
@ PassMargins
Definition: TrackArtist.h:76