Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
AdornedRulerPanel::MainGroup Struct Referencefinal
Inheritance diagram for AdornedRulerPanel::MainGroup:
Collaboration diagram for AdornedRulerPanel::MainGroup:

Public Member Functions

 MainGroup (const AdornedRulerPanel &ruler)
Subdivision Children (const wxRect &) 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

const AdornedRulerPanelmRuler

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 2266 of file AdornedRulerPanel.cpp.

Constructor & Destructor Documentation

◆ MainGroup()

AdornedRulerPanel::MainGroup::MainGroup ( const AdornedRulerPanel ruler)

Definition at line 2267 of file AdornedRulerPanel.cpp.

2267 : mRuler{ ruler } {}

References anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler().

Here is the call graph for this function:

Member Function Documentation

◆ Children()

Subdivision AdornedRulerPanel::MainGroup::Children ( const wxRect &  )

Implements TrackPanelGroup.

Definition at line 2268 of file AdornedRulerPanel.cpp.

2269  { return { Axis::X, Refinement{
2270  // Subgroup is a throwaway object
2271  { mRuler.mInner.GetLeft(), std::make_shared< Subgroup >( mRuler ) },
2272  { mRuler.mInner.GetRight() + 1, nullptr }
2273  } }; }

References AdornedRulerPanel::mInner, mRuler, and TrackPanelGroup::X.

Member Data Documentation

◆ mRuler

const AdornedRulerPanel& AdornedRulerPanel::MainGroup::mRuler

Definition at line 2274 of file AdornedRulerPanel.cpp.

Referenced by Children().

The documentation for this struct was generated from the following file:
std::vector< Child > Refinement
Definition: TrackPanelCell.h:64
const AdornedRulerPanel & mRuler
Definition: AdornedRulerPanel.cpp:2274
Ruler & ruler()
Definition: TimeTrackVRulerControls.cpp:34
@ X
wxRect mInner
Definition: AdornedRulerPanel.h:128