aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/UiEvent.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-07-05 19:48:49 +0800
committercrupest <crupest@outlook.com>2020-07-05 19:48:49 +0800
commitbbec59718bf8a824583869126762013112f8e568 (patch)
tree1c0917e7c12a7af9ff3482f452a9da684a74ed81 /include/cru/ui/UiEvent.hpp
parentce56ab59a6d68c220fcc47c6977c618eaa43de7a (diff)
downloadcru-bbec59718bf8a824583869126762013112f8e568.tar.gz
cru-bbec59718bf8a824583869126762013112f8e568.tar.bz2
cru-bbec59718bf8a824583869126762013112f8e568.zip
...
Diffstat (limited to 'include/cru/ui/UiEvent.hpp')
-rw-r--r--include/cru/ui/UiEvent.hpp5
1 files changed, 1 insertions, 4 deletions
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> point_;