From a60910cb3db6f47fd8f3b7f31648a9d0514d4f2c Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 20 Nov 2021 22:43:30 +0800 Subject: ... --- include/cru/platform/gui/Window.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cru/platform/gui/Window.hpp') diff --git a/include/cru/platform/gui/Window.hpp b/include/cru/platform/gui/Window.hpp index 49cbe1a0..a1816e4a 100644 --- a/include/cru/platform/gui/Window.hpp +++ b/include/cru/platform/gui/Window.hpp @@ -43,6 +43,9 @@ struct INativeWindow : virtual IPlatformResource { virtual Size GetClientSize() = 0; virtual void SetClientSize(const Size& size) = 0; + virtual Rect GetClientRect() = 0; + virtual void SetClientRect(const Rect& rect) = 0; + // Get the rect of the window containing frame. // The lefttop of the rect is relative to screen lefttop. virtual Rect GetWindowRect() = 0; @@ -67,6 +70,7 @@ struct INativeWindow : virtual IPlatformResource { virtual std::unique_ptr BeginPaint() = 0; // Don't use this instance after receive this event. + virtual IEvent* CreateEvent() = 0; virtual IEvent* DestroyEvent() = 0; virtual IEvent* PaintEvent() = 0; virtual IEvent* ResizeEvent() = 0; -- cgit v1.2.3