Audacity 3.2.0
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 ()
 
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

const AdornedRulerPanelmRuler
 

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

Constructor & Destructor Documentation

◆ Subgroup()

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

Member Function Documentation

◆ Children()

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

Implements TrackPanelGroup.

Definition at line 2769 of file AdornedRulerPanel.cpp.

2770 {
2771 return { Axis::Y, ( mRuler.ShowingScrubRuler() )
2772 ? Refinement{
2773 { mRuler.mInner.GetTop(), mRuler.mQPCell },
2774 { mRuler.mScrubZone.GetTop(), mRuler.mScrubbingCell },
2775 { mRuler.mScrubZone.GetBottom() + 1, nullptr }
2776 }
2777 : Refinement{
2778 { mRuler.mInner.GetTop(), mRuler.mQPCell },
2779 { mRuler.mInner.GetBottom() + 1, nullptr }
2780 }
2781 };
2782 }
std::shared_ptr< ScrubbingCell > mScrubbingCell
bool ShowingScrubRuler() const
std::shared_ptr< QPCell > mQPCell
std::vector< Child > Refinement

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

Referenced by Children().


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