From b0b86b6b9d6798d04a320060e90bd8497a7f50f9 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 20 Nov 2021 19:47:53 +0800 Subject: ... --- include/cru/platform/gui/Window.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/cru/platform') diff --git a/include/cru/platform/gui/Window.hpp b/include/cru/platform/gui/Window.hpp index 3502868a..49cbe1a0 100644 --- a/include/cru/platform/gui/Window.hpp +++ b/include/cru/platform/gui/Window.hpp @@ -51,6 +51,8 @@ struct INativeWindow : virtual IPlatformResource { // The lefttop of the rect is relative to screen lefttop. virtual void SetWindowRect(const Rect& rect) = 0; + virtual bool RequestFocus() = 0; + // Relative to client lefttop. virtual Point GetMousePosition() = 0; -- cgit v1.2.3