Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{TrackPanel.cpp}::MainGroup Struct Referencefinal
Inheritance diagram for anonymous_namespace{TrackPanel.cpp}::MainGroup:
[legend]
Collaboration diagram for anonymous_namespace{TrackPanel.cpp}::MainGroup:
[legend]

Public Member Functions

 MainGroup (TrackPanel &panel)
 
Subdivision Children (const wxRect &rect) override
 
- Public Member Functions inherited from TrackPanelGroup
 TrackPanelGroup ()
 
virtual ~TrackPanelGroup ()
 
virtual Subdivision Children (const wxRect &rect)=0
 
- 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)
 

Public Attributes

TrackPanelmPanel
 

Additional Inherited Members

- Public Types inherited from TrackPanelGroup
enum class  Axis { X , Y }
 
using Child = std::pair< wxCoord, std::shared_ptr< TrackPanelNode > >
 
using Refinement = std::vector< Child >
 
using Subdivision = std::pair< Axis, Refinement >
 
- 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)
 

Detailed Description

Definition at line 1474 of file TrackPanel.cpp.

Constructor & Destructor Documentation

◆ MainGroup()

anonymous_namespace{TrackPanel.cpp}::MainGroup::MainGroup ( TrackPanel panel)
inlineexplicit

Definition at line 1475 of file TrackPanel.cpp.

Member Function Documentation

◆ Children()

Subdivision anonymous_namespace{TrackPanel.cpp}::MainGroup::Children ( const wxRect &  rect)
inlineoverridevirtual

Implements TrackPanelGroup.

Definition at line 1476 of file TrackPanel.cpp.

1477 { return { Axis::X, Refinement{
1478 { 0, EmptyCell::Instance() },
1479 { kLeftMargin, std::make_shared<Subgroup>(mPanel) },
1480 { rect.GetRight() + 1 - kRightMargin, EmptyCell::Instance() }
1481 } }; }
@ kRightMargin
Definition: ZoomInfo.h:28
@ kLeftMargin
Definition: ZoomInfo.h:27
std::vector< Child > Refinement
static std::shared_ptr< EmptyCell > Instance()

References kLeftMargin, and kRightMargin.

Member Data Documentation

◆ mPanel

TrackPanel& anonymous_namespace{TrackPanel.cpp}::MainGroup::mPanel

Definition at line 1482 of file TrackPanel.cpp.


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