diff options
author | crupest <crupest@outlook.com> | 2020-07-05 19:48:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-05 19:48:49 +0800 |
commit | bbec59718bf8a824583869126762013112f8e568 (patch) | |
tree | 1c0917e7c12a7af9ff3482f452a9da684a74ed81 /src/ui/UiEvent.cpp | |
parent | ce56ab59a6d68c220fcc47c6977c618eaa43de7a (diff) | |
download | cru-bbec59718bf8a824583869126762013112f8e568.tar.gz cru-bbec59718bf8a824583869126762013112f8e568.tar.bz2 cru-bbec59718bf8a824583869126762013112f8e568.zip |
...
Diffstat (limited to 'src/ui/UiEvent.cpp')
-rw-r--r-- | src/ui/UiEvent.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/UiEvent.cpp b/src/ui/UiEvent.cpp new file mode 100644 index 00000000..74dd54dc --- /dev/null +++ b/src/ui/UiEvent.cpp @@ -0,0 +1,10 @@ +#include "cru/ui/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 |