diff options
author | crupest <crupest@outlook.com> | 2020-03-03 23:36:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-03 23:36:45 +0800 |
commit | 0dcf8e686b93cca54a424affe0455d0a97d6c2ef (patch) | |
tree | 744897a3b6a29f6142f1943dab5d9957e670919b /include/cru/ui/ui_event.hpp | |
parent | 47053829c322c43032244937cb63f9da178b852d (diff) | |
download | cru-0dcf8e686b93cca54a424affe0455d0a97d6c2ef.tar.gz cru-0dcf8e686b93cca54a424affe0455d0a97d6c2ef.tar.bz2 cru-0dcf8e686b93cca54a424affe0455d0a97d6c2ef.zip |
...
Diffstat (limited to 'include/cru/ui/ui_event.hpp')
-rw-r--r-- | include/cru/ui/ui_event.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/ui/ui_event.hpp b/include/cru/ui/ui_event.hpp index 147d3da6..c5af2b61 100644 --- a/include/cru/ui/ui_event.hpp +++ b/include/cru/ui/ui_event.hpp @@ -1,6 +1,8 @@ #pragma once #include "base.hpp" +#include "cru/common/event.hpp" + #include <memory> #include <optional> #include <type_traits> @@ -80,6 +82,7 @@ class MouseEventArgs : public UiEventArgs { MouseEventArgs& operator=(MouseEventArgs&& other) = default; ~MouseEventArgs() override = default; + // This point is relative to window client lefttop. Point GetPoint() const { return point_.value_or(Point{}); } private: |