diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-11 23:27:16 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-11 23:27:16 +0800 |
commit | 86e776eaebf7c45a269001ca7da0dfafba069d0a (patch) | |
tree | 64c0544d9839562a6fc6d08ea00682a94c5d222b /include/cru/platform | |
parent | 99a322a6badf5b6d95be4944e80d92fc1cb2589e (diff) | |
download | cru-86e776eaebf7c45a269001ca7da0dfafba069d0a.tar.gz cru-86e776eaebf7c45a269001ca7da0dfafba069d0a.tar.bz2 cru-86e776eaebf7c45a269001ca7da0dfafba069d0a.zip |
...
Diffstat (limited to 'include/cru/platform')
-rw-r--r-- | include/cru/platform/native/native_window.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/platform/native/native_window.hpp b/include/cru/platform/native/native_window.hpp index 22a2dce0..b557a0dd 100644 --- a/include/cru/platform/native/native_window.hpp +++ b/include/cru/platform/native/native_window.hpp @@ -56,6 +56,12 @@ class NativeWindow : public NativeResource { // The lefttop of the rect is relative to screen lefttop. virtual void SetWindowRect(const Rect& rect) = 0; + // Relative to client lefttop. + virtual Point GetMousePosition() = 0; + + virtual bool CaptureMouse() = 0; + virtual bool ReleaseMouse() = 0; + virtual graph::Painter* BeginPaint() = 0; virtual IEvent<std::nullptr_t>* DestroyEvent() = 0; |