|
| VRulersAndChannels (const std::shared_ptr< Channel > &pChannel, ChannelView::Refinement refinement, wxCoord leftOffset) |
|
Subdivision | Children (const wxRect &rect) override |
|
void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override |
|
wxRect | DrawingArea (TrackPanelDrawingContext &context, const wxRect &rect, const wxRect &panelRect, unsigned iPass) override |
|
| TrackPanelGroup () |
|
virtual | ~TrackPanelGroup () |
|
virtual Subdivision | Children (const wxRect &rect)=0 |
|
| TrackPanelNode () |
|
virtual | ~TrackPanelNode ()=0 |
|
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) |
|
Definition at line 1151 of file TrackPanel.cpp.
◆ VRulersAndChannels()
anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::VRulersAndChannels |
( |
const std::shared_ptr< Channel > & |
pChannel, |
|
|
ChannelView::Refinement |
refinement, |
|
|
wxCoord |
leftOffset |
|
) |
| |
|
inline |
Definition at line 1152 of file TrackPanel.cpp.
ChannelView::Refinement mRefinement
std::shared_ptr< Channel > mpChannel
◆ Children()
Subdivision anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::Children |
( |
const wxRect & |
rect | ) |
|
|
inlineoverridevirtual |
Implements TrackPanelGroup.
Definition at line 1158 of file TrackPanel.cpp.
1159 {
1161 auto y1 = rect.GetTop();
1163 y1 = std::max( y1, subView.first );
1164 refinement.emplace_back( y1,
1165 std::make_shared< VRulerAndChannel >(
1167 }
1168 return {
Axis::Y, std::move( refinement ) };
1169 }
std::vector< Child > Refinement
◆ Draw()
void anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::Draw |
( |
TrackPanelDrawingContext & |
context, |
|
|
const wxRect & |
rect, |
|
|
unsigned |
iPass |
|
) |
| |
|
inlineoverridevirtual |
◆ DrawingArea()
wxRect anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::DrawingArea |
( |
TrackPanelDrawingContext & |
context, |
|
|
const wxRect & |
rect, |
|
|
const wxRect & |
panelRect, |
|
|
unsigned |
iPass |
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 1193 of file TrackPanel.cpp.
1196 {
1197 auto result = rect;
1199 if ( true ) {
1200 wxCoord textWidth, textHeight;
1202 result =
1204 }
1205 }
1206 return result;
1207 }
void GetTrackNameExtent(wxDC &dc, const Channel &channel, wxCoord *pW, wxCoord *pH)
wxRect GetTrackNameRect(int leftOffset, const wxRect &trackRect, wxCoord textWidth, wxCoord textHeight)
References TrackPanelDrawingContext::dc, anonymous_namespace{TrackPanel.cpp}::GetTrackNameExtent(), anonymous_namespace{TrackPanel.cpp}::GetTrackNameRect(), and TrackArtist::PassBorders.
◆ mLeftOffset
wxCoord anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::mLeftOffset |
◆ mpChannel
std::shared_ptr<Channel> anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::mpChannel |
◆ mRefinement
The documentation for this struct was generated from the following file: