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

Public Member Functions

 VRulerAndChannel (const std::shared_ptr< TrackView > &pView, wxCoord leftOffset)
 
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

std::shared_ptr< TrackViewmpView
 
wxCoord mLeftOffset
 

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 1187 of file TrackPanel.cpp.

Constructor & Destructor Documentation

◆ VRulerAndChannel()

anonymous_namespace{TrackPanel.cpp}::VRulerAndChannel::VRulerAndChannel ( const std::shared_ptr< TrackView > &  pView,
wxCoord  leftOffset 
)
inline

Definition at line 1188 of file TrackPanel.cpp.

1190  : mpView{ pView }, mLeftOffset{ leftOffset } {}

Member Function Documentation

◆ Children()

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

Implements TrackPanelGroup.

Definition at line 1191 of file TrackPanel.cpp.

1192  {
1193  return { Axis::X, Refinement{
1194  { rect.GetLeft(),
1195  TrackVRulerControls::Get( *mpView ).shared_from_this() },
1196  { mLeftOffset, mpView }
1197  } };
1198  }

References TrackVRulerControls::Get().

Here is the call graph for this function:

Member Data Documentation

◆ mLeftOffset

wxCoord anonymous_namespace{TrackPanel.cpp}::VRulerAndChannel::mLeftOffset

Definition at line 1200 of file TrackPanel.cpp.

◆ mpView

std::shared_ptr< TrackView > anonymous_namespace{TrackPanel.cpp}::VRulerAndChannel::mpView

Definition at line 1199 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
TrackVRulerControls::Get
static TrackVRulerControls & Get(TrackView &)
Definition: TrackVRulerControls.cpp:36
anonymous_namespace{TrackPanel.cpp}::VRulerAndChannel::mpView
std::shared_ptr< TrackView > mpView
Definition: TrackPanel.cpp:1199
anonymous_namespace{TrackPanel.cpp}::VRulerAndChannel::mLeftOffset
wxCoord mLeftOffset
Definition: TrackPanel.cpp:1200