aboutsummaryrefslogtreecommitdiff
path: root/src/ui/events
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-08 17:45:41 +0800
committercrupest <crupest@outlook.com>2020-11-08 17:45:41 +0800
commit2188845a7acffa653015a1000139ec0a9a3984bc (patch)
tree7e8ed6eca5868a0943af6fcad6467115f369987c /src/ui/events
parent93265251d56c91b05f160423077ce95339786f87 (diff)
downloadcru-2188845a7acffa653015a1000139ec0a9a3984bc.tar.gz
cru-2188845a7acffa653015a1000139ec0a9a3984bc.tar.bz2
cru-2188845a7acffa653015a1000139ec0a9a3984bc.zip
...
Diffstat (limited to 'src/ui/events')
-rw-r--r--src/ui/events/UiEvent.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/events/UiEvent.cpp b/src/ui/events/UiEvent.cpp
new file mode 100644
index 00000000..b35f15a7
--- /dev/null
+++ b/src/ui/events/UiEvent.cpp
@@ -0,0 +1,10 @@
+#include "cru/ui/events/UiEvent.hpp"
+
+#include "cru/ui/render/RenderObject.hpp"
+
+namespace cru::ui::event {
+Point MouseEventArgs::GetPointToContent(
+ render::RenderObject* render_object) const {
+ return render_object->FromRootToContent(GetPoint());
+}
+} // namespace cru::ui::event