From 24aaa8fbc5da8370506402facdb8ccaf563454e5 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 15 Feb 2022 21:34:21 +0800 Subject: ... --- include/cru/ui/helper/ClickDetector.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/cru/ui/helper') 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_; } -- cgit v1.2.3