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

Method FindRulerRects

src/TrackPanel.cpp:1553–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551}
1552
1553std::vector<wxRect> TrackPanel::FindRulerRects(const Channel &target)
1554{
1555 std::vector<wxRect> results;
1556 VisitCells( [&](const wxRect &rect, TrackPanelCell &visited) {
1557 if (auto pRuler = dynamic_cast<const ChannelVRulerControls*>(&visited))
1558 if (auto pView = pRuler->GetChannelView())
1559 if (pView->FindChannel().get() == &target)
1560 results.push_back(rect);
1561 } );
1562 return results;
1563}
1564
1565std::shared_ptr<TrackPanelCell> TrackPanel::GetFocusedCell()
1566{

Callers 1

ExploreTrackPanelMethod · 0.80

Calls 3

getMethod · 0.45
FindChannelMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected