From bbec59718bf8a824583869126762013112f8e568 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 5 Jul 2020 19:48:49 +0800 Subject: ... --- include/cru/ui/UiEvent.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include/cru/ui/UiEvent.hpp') diff --git a/include/cru/ui/UiEvent.hpp b/include/cru/ui/UiEvent.hpp index 79d0f7e3..39f26aee 100644 --- a/include/cru/ui/UiEvent.hpp +++ b/include/cru/ui/UiEvent.hpp @@ -13,10 +13,6 @@ namespace cru::platform::graph { struct IPainter; } -namespace cru::ui { -class Control; -} - namespace cru::ui::event { class UiEventArgs : public Object { public: @@ -88,6 +84,7 @@ class MouseEventArgs : public UiEventArgs { // This point is relative to window client lefttop. Point GetPoint() const { return point_.value_or(Point{}); } + Point GetPointToContent(render::RenderObject* render_target) const; private: std::optional point_; -- cgit v1.2.3