1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

nonvirtual reimplementation of CellularPanel::FindRect using nodes

This commit is contained in:
Paul Licameli
2018-09-17 18:28:39 -04:00
parent cfa7afcb24
commit 01551913f0
6 changed files with 19 additions and 32 deletions

View File

@@ -48,8 +48,6 @@ public:
// area into cells
virtual std::shared_ptr<TrackPanelNode> Root() = 0;
virtual wxRect FindRect(const TrackPanelCell &cell) = 0;
// Structure and functions for generalized visitation of the subdivision
struct Visitor {
virtual ~Visitor();
@@ -94,6 +92,11 @@ public:
FoundCell FindCell(int mouseX, int mouseY);
// Search the tree of subdivisions of the panel area for the given cell.
// If more than one sub-area is associated with the same cell object, it
// is not specified which rectangle is returned.
wxRect FindRect(const TrackPanelCell &cell);
UIHandlePtr Target();
std::shared_ptr<TrackPanelCell> LastCell() const;