From 86e776eaebf7c45a269001ca7da0dfafba069d0a Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sun, 11 Aug 2019 23:27:16 +0800 Subject: ... --- include/cru/platform/native/native_window.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/cru/platform/native/native_window.hpp') 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* DestroyEvent() = 0; -- cgit v1.2.3