1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-10 14:46:24 +01:00

Add a method to find the rectangle of a given cell...

... Cells are not responsible to remember that; the cells' container determines
that.
This commit is contained in:
Paul Licameli
2018-06-26 23:36:34 -04:00
parent 062066eb79
commit c08c17eafa
2 changed files with 18 additions and 0 deletions

View File

@@ -268,6 +268,7 @@ public:
wxRect rect;
};
virtual FoundCell FindCell(int mouseX, int mouseY) = 0;
virtual wxRect FindRect(const TrackPanelCell &cell) = 0;
virtual TrackPanelCell *GetFocusedCell() = 0;
virtual void SetFocusedCell() = 0;
@@ -467,6 +468,9 @@ protected:
// Find track info by coordinate
FoundCell FindCell(int mouseX, int mouseY) override;
// Find rectangle of the given cell
wxRect FindRect(const TrackPanelCell &cell) override;
int GetVRulerWidth() const;
int GetVRulerOffset() const { return mTrackInfo.GetTrackInfoWidth(); }