1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-16 08:34:10 +02:00

Add CellularPanel::LastCell

This commit is contained in:
Paul Licameli 2018-07-06 20:12:58 -04:00
parent 4e1a80f5ac
commit 7cbe85facf
2 changed files with 7 additions and 0 deletions

View File

@ -852,3 +852,8 @@ void CellularPanel::ClearTargets()
state.mMouseOverUpdateFlags = 0; state.mMouseOverUpdateFlags = 0;
} }
std::shared_ptr<TrackPanelCell> CellularPanel::LastCell() const
{
auto &state = *mState;
return state.mLastCell.lock();
}

View File

@ -61,6 +61,8 @@ public:
public: public:
UIHandlePtr Target(); UIHandlePtr Target();
std::shared_ptr<TrackPanelCell> LastCell() const;
bool IsMouseCaptured(); bool IsMouseCaptured();
wxCoord MostRecentXCoord() const; wxCoord MostRecentXCoord() const;