1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-02 09:54:42 +01:00

Define CellularPanel::Root

This commit is contained in:
Paul Licameli
2018-09-17 12:53:34 -04:00
parent 30d55f476e
commit 4fe97acbc9
5 changed files with 25 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ class ViewInfo;
class AudacityProject;
class TrackPanelCell;
class TrackPanelNode;
struct TrackPanelMouseEvent;
struct TrackPanelMouseState;
@@ -47,6 +48,11 @@ public:
std::shared_ptr<TrackPanelCell> pCell;
wxRect rect;
};
// Get the root object defining a recursive subdivision of the panel's
// area into cells
virtual std::shared_ptr<TrackPanelNode> Root() = 0;
virtual FoundCell FindCell(int mouseX, int mouseY) = 0;
virtual wxRect FindRect(const TrackPanelCell &cell) = 0;
virtual TrackPanelCell *GetFocusedCell() = 0;