Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect Class Referencefinal
Inheritance diagram for anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect:
Collaboration diagram for anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect:

Public Member Functions

 EmptyPanelRect (const std::shared_ptr< Track > &track, int fillBrushName)
 ~EmptyPanelRect ()
void Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
std::shared_ptr< TrackDoFindTrack () override
std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject) 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)

Private Attributes

std::shared_ptr< TrackmTrack
int mFillBrushName

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ EmptyPanelRect()

anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect::EmptyPanelRect ( const std::shared_ptr< Track > &  track,
int  fillBrushName 

Definition at line 1342 of file TrackPanel.cpp.

◆ ~EmptyPanelRect()

anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect::~EmptyPanelRect ( )

Definition at line 1347 of file TrackPanel.cpp.

1347{ }

Member Function Documentation

◆ DoFindTrack()

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

Implements CommonTrackPanelCell.

Definition at line 1362 of file TrackPanel.cpp.

1363 {
1364 return mTrack;
1365 }

◆ Draw()

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

Reimplemented from TrackPanelDrawable.

Definition at line 1349 of file TrackPanel.cpp.

1351 {
1352 if (iPass == TrackArtist::PassBackground)
1353 {
1354 context.dc.SetPen(*wxTRANSPARENT_PEN);
1356 context.dc.DrawRectangle(rect);
1357 wxRect bevel(rect.x, rect.y, rect.width - 1, rect.height - 1);
1358 AColor::BevelTrackInfo(context.dc, true, bevel, false);
1359 }
1360 }
static void BevelTrackInfo(wxDC &dc, bool up, const wxRect &r, bool highlight=false)
Definition: AColor.cpp:340
static void UseThemeColour(wxDC *dc, int iBrush, int iPen=-1, int alpha=255)
Definition: AColor.cpp:372

References AColor::BevelTrackInfo(), TrackPanelDrawingContext::dc, TrackArtist::PassBackground, and AColor::UseThemeColour().

Here is the call graph for this function:

◆ HitTest()

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

Implements TrackPanelCell.

Definition at line 1367 of file TrackPanel.cpp.

1369 {
1370 return {};
1371 }

Member Data Documentation

◆ mFillBrushName

int anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect::mFillBrushName

Definition at line 1340 of file TrackPanel.cpp.

◆ mTrack

std::shared_ptr<Track> anonymous_namespace{TrackPanel.cpp}::EmptyPanelRect::mTrack

Definition at line 1339 of file TrackPanel.cpp.

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