Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
AdornedRulerPanel::Subgroup Struct Referencefinal
Inheritance diagram for AdornedRulerPanel::Subgroup:
[legend]
Collaboration diagram for AdornedRulerPanel::Subgroup:
[legend]

Public Member Functions

 Subgroup (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 2246 of file AdornedRulerPanel.cpp.

Constructor & Destructor Documentation

◆ Subgroup()

AdornedRulerPanel::Subgroup::Subgroup ( const AdornedRulerPanel ruler)
inlineexplicit

Definition at line 2247 of file AdornedRulerPanel.cpp.

2247 : mRuler{ ruler } {}

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

Here is the call graph for this function:

Member Function Documentation

◆ Children()

Subdivision AdornedRulerPanel::Subgroup::Children ( const wxRect &  )
inlineoverridevirtual

Implements TrackPanelGroup.

Definition at line 2248 of file AdornedRulerPanel.cpp.

2249  {
2250  return { Axis::Y, ( mRuler.ShowingScrubRuler() )
2251  ? Refinement{
2252  { mRuler.mInner.GetTop(), mRuler.mQPCell },
2253  { mRuler.mScrubZone.GetTop(), mRuler.mScrubbingCell },
2254  { mRuler.mScrubZone.GetBottom() + 1, nullptr }
2255  }
2256  : Refinement{
2257  { mRuler.mInner.GetTop(), mRuler.mQPCell },
2258  { mRuler.mInner.GetBottom() + 1, nullptr }
2259  }
2260  };
2261  }

References AdornedRulerPanel::mInner, AdornedRulerPanel::mQPCell, mRuler, AdornedRulerPanel::mScrubbingCell, AdornedRulerPanel::mScrubZone, AdornedRulerPanel::ShowingScrubRuler(), and TrackPanelGroup::Y.

Here is the call graph for this function:

Member Data Documentation

◆ mRuler

const AdornedRulerPanel& AdornedRulerPanel::Subgroup::mRuler

Definition at line 2262 of file AdornedRulerPanel.cpp.

Referenced by Children().


The documentation for this struct was generated from the following file:
AdornedRulerPanel::mScrubZone
wxRect mScrubZone
Definition: AdornedRulerPanel.h:127
TrackPanelGroup::Refinement
std::vector< Child > Refinement
Definition: TrackPanelCell.h:64
anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler
Ruler & ruler()
Definition: TimeTrackVRulerControls.cpp:34
AdornedRulerPanel::Subgroup::mRuler
const AdornedRulerPanel & mRuler
Definition: AdornedRulerPanel.cpp:2262
AdornedRulerPanel::mScrubbingCell
std::shared_ptr< ScrubbingCell > mScrubbingCell
Definition: AdornedRulerPanel.h:218
AdornedRulerPanel::mInner
wxRect mInner
Definition: AdornedRulerPanel.h:128
AdornedRulerPanel::mQPCell
std::shared_ptr< QPCell > mQPCell
Definition: AdornedRulerPanel.h:215
AdornedRulerPanel::ShowingScrubRuler
bool ShowingScrubRuler() const
Definition: AdornedRulerPanel.cpp:2277
TrackPanelGroup::Axis::Y
@ Y