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
| 1514 | // either that of the label 'adornment' or the track itself |
| 1515 | // The given track is assumed to be the first channel |
| 1516 | wxRect 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 | |
| 1525 | wxRect TrackPanel::FindFocusedTrackRect( const Track * target ) |
| 1526 | { |
no test coverage detected