Audacity  3.0.3
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 ()
 
- 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  Axis { Axis::X, Axis::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 1636 of file TrackPanel.cpp.

Constructor & Destructor Documentation

◆ MainGroup()

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

Definition at line 1637 of file TrackPanel.cpp.

1637 : mPanel{ panel } {}

Member Function Documentation

◆ Children()

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

Implements TrackPanelGroup.

Definition at line 1638 of file TrackPanel.cpp.

1639  { return { Axis::X, Refinement{
1640  { 0, EmptyCell::Instance() },
1641  { kLeftMargin, std::make_shared< Subgroup >( mPanel ) },
1642  { rect.GetRight() + 1 - kRightMargin, EmptyCell::Instance() }
1643  } }; }

References kLeftMargin, and kRightMargin.

Member Data Documentation

◆ mPanel

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

Definition at line 1644 of file TrackPanel.cpp.


The documentation for this struct was generated from the following file:
TrackPanelGroup::Refinement
std::vector< Child > Refinement
Definition: TrackPanelCell.h:64
TrackPanelGroup::Axis::X
@ X
anonymous_namespace{TrackPanel.cpp}::EmptyCell::Instance
static std::shared_ptr< EmptyCell > Instance()
Definition: TrackPanel.cpp:1235
anonymous_namespace{TrackPanel.cpp}::MainGroup::mPanel
TrackPanel & mPanel
Definition: TrackPanel.cpp:1644
kRightMargin
@ kRightMargin
Definition: ZoomInfo.h:34
kLeftMargin
@ kLeftMargin
Definition: ZoomInfo.h:33