From 7cbe85facf41aa1b662c17a7e7c712cf64c75422 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Fri, 6 Jul 2018 20:12:58 -0400 Subject: [PATCH] Add CellularPanel::LastCell --- src/CellularPanel.cpp | 5 +++++ src/CellularPanel.h | 2 ++ 2 files changed, 7 insertions(+) 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;