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

Public Member Functions

 ResizingChannelGroup (const std::shared_ptr< Track > &pTrack, 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< TrackmpTrack
 
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 1584 of file TrackPanel.cpp.

Constructor & Destructor Documentation

◆ ResizingChannelGroup()

anonymous_namespace{TrackPanel.cpp}::ResizingChannelGroup::ResizingChannelGroup ( const std::shared_ptr< Track > &  pTrack,
wxCoord  leftOffset 
)
inline

Definition at line 1585 of file TrackPanel.cpp.

1587  : mpTrack{ pTrack }, mLeftOffset{ leftOffset } {}

Member Function Documentation

◆ Children()

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

Implements TrackPanelGroup.

Definition at line 1588 of file TrackPanel.cpp.

1589  { return { Axis::Y, Refinement{
1590  { rect.GetTop(),
1591  std::make_shared< LabeledChannelGroup >( mpTrack, mLeftOffset ) },
1592  { rect.GetTop() + rect.GetHeight() - kTrackSeparatorThickness,
1594  **TrackList::Channels( mpTrack.get() ).rbegin() ).shared_from_this()
1595  }
1596  } }; }

References TrackList::Channels(), TrackPanelResizerCell::Get(), and kTrackSeparatorThickness.

Here is the call graph for this function:

Member Data Documentation

◆ mLeftOffset

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

Definition at line 1598 of file TrackPanel.cpp.

◆ mpTrack

std::shared_ptr< Track > anonymous_namespace{TrackPanel.cpp}::ResizingChannelGroup::mpTrack

Definition at line 1597 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
anonymous_namespace{TrackPanel.cpp}::ResizingChannelGroup::mLeftOffset
wxCoord mLeftOffset
Definition: TrackPanel.cpp:1598
TrackList::Channels
static auto Channels(TrackType *pTrack) -> TrackIterRange< TrackType >
Definition: Track.h:1484
TrackPanelGroup::Axis::Y
@ Y
kTrackSeparatorThickness
@ kTrackSeparatorThickness
Definition: TrackPanelConstants.h:23
TrackPanelResizerCell::Get
static TrackPanelResizerCell & Get(Track &track)
Definition: TrackPanelResizerCell.cpp:119
anonymous_namespace{TrackPanel.cpp}::ResizingChannelGroup::mpTrack
std::shared_ptr< Track > mpTrack
Definition: TrackPanel.cpp:1597