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
 
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 std::shared_ptr< TrackPanelCellContextMenuDelegate ()
 
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 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 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 1230 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 1234 of file TrackPanel.cpp.

1234 { return {}; }

◆ Draw()

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

Reimplemented from TrackPanelDrawable.

Definition at line 1242 of file TrackPanel.cpp.

1245  {
1246  if ( iPass == TrackArtist::PassMargins ) {
1247  // Draw a margin area of TrackPanel
1248  auto dc = &context.dc;
1249 
1250  AColor::TrackPanelBackground( dc, false );
1251  dc->DrawRectangle( rect );
1252  }
1253  }

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

1233  { return {}; }

◆ Instance()

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

Definition at line 1235 of file TrackPanel.cpp.

1236  {
1237  static auto instance = std::make_shared< EmptyCell >();
1238  return instance;
1239  }

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