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:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user