diff options
author | crupest <crupest@outlook.com> | 2022-02-15 21:34:21 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-15 21:34:21 +0800 |
commit | 24aaa8fbc5da8370506402facdb8ccaf563454e5 (patch) | |
tree | 0075bfbee729b1ccc57966bef97bda4be09cbde9 /include/cru/ui/helper/ClickDetector.h | |
parent | fa6e9a419f688df12a57199aa3b4dce10cc6fd49 (diff) | |
download | cru-24aaa8fbc5da8370506402facdb8ccaf563454e5.tar.gz cru-24aaa8fbc5da8370506402facdb8ccaf563454e5.tar.bz2 cru-24aaa8fbc5da8370506402facdb8ccaf563454e5.zip |
...
Diffstat (limited to 'include/cru/ui/helper/ClickDetector.h')
-rw-r--r-- | include/cru/ui/helper/ClickDetector.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/ui/helper/ClickDetector.h b/include/cru/ui/helper/ClickDetector.h index 1cfb26bc..0d74b9c0 100644 --- a/include/cru/ui/helper/ClickDetector.h +++ b/include/cru/ui/helper/ClickDetector.h @@ -4,6 +4,8 @@ #include "cru/common/Event.h" namespace cru::ui::helper { +class ClickDetector; + class CRU_UI_API ClickEventArgs : Object { public: ClickEventArgs(controls::Control* sender, const Point& down_point, @@ -20,6 +22,7 @@ class CRU_UI_API ClickEventArgs : Object { controls::Control* GetSender() const { return sender_; } Point GetDownPoint() const { return down_point_; } + Point GetDownPointOfScreen() const; Point GetUpPoint() const { return up_point_; } MouseButton GetButton() const { return button_; } |