diff --git a/src/CellularPanel.cpp b/src/CellularPanel.cpp index af0831386..01d033800 100644 --- a/src/CellularPanel.cpp +++ b/src/CellularPanel.cpp @@ -852,3 +852,8 @@ void CellularPanel::ClearTargets() state.mMouseOverUpdateFlags = 0; } +std::shared_ptr CellularPanel::LastCell() const +{ + auto &state = *mState; + return state.mLastCell.lock(); +} diff --git a/src/CellularPanel.h b/src/CellularPanel.h index e7a145b9c..de3d27217 100644 --- a/src/CellularPanel.h +++ b/src/CellularPanel.h @@ -61,6 +61,8 @@ public: public: UIHandlePtr Target(); + std::shared_ptr LastCell() const; + bool IsMouseCaptured(); wxCoord MostRecentXCoord() const;