MCPcopy Create free account
hub / github.com/audacity/audacity / FindTrackRect

Method FindTrackRect

src/TrackPanel.cpp:1516–1523  ·  view source on GitHub ↗

This finds the rectangle of a given track (including all channels), either that of the label 'adornment' or the track itself The given track is assumed to be the first channel

Source from the content-addressed store, hash-verified

1514// either that of the label 'adornment' or the track itself
1515// The given track is assumed to be the first channel
1516wxRect TrackPanel::FindTrackRect( const Track * target )
1517{
1518 return CellularPanel::FindRect( [&] ( TrackPanelNode &node ) {
1519 if (auto pGroup = dynamic_cast<const LabeledChannelGroup*>( &node ))
1520 return pGroup->mpTrack.get() == target;
1521 return false;
1522 } );
1523}
1524
1525wxRect TrackPanel::FindFocusedTrackRect( const Track * target )
1526{

Callers 3

TrackPanelMethod · 0.80
DialogForLabelNameMethod · 0.80
GetHitClipFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected