From 02baef645090f0514fa14b43aecf954fd55257dc Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 12 May 2021 08:36:43 +0800 Subject: ... --- include/cru/ui/host/WindowHost.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/cru/ui/host/WindowHost.hpp') diff --git a/include/cru/ui/host/WindowHost.hpp b/include/cru/ui/host/WindowHost.hpp index bd2f7c16..cd9093bc 100644 --- a/include/cru/ui/host/WindowHost.hpp +++ b/include/cru/ui/host/WindowHost.hpp @@ -3,6 +3,7 @@ #include "../render/Base.hpp" #include "cru/common/Event.hpp" +#include "cru/platform/gui/Cursor.hpp" #include "cru/platform/gui/UiApplication.hpp" #include "cru/platform/gui/Window.hpp" @@ -118,6 +119,9 @@ class WindowHost : public Object { void SetWindowRect(const Rect& rect); + std::shared_ptr GetOverrideCursor(); + void SetOverrideCursor(std::shared_ptr cursor); + private: //*************** region: native messages *************** void OnNativeDestroy(platform::gui::INativeWindow* window, std::nullptr_t); @@ -172,5 +176,7 @@ class WindowHost : public Object { Event native_window_change_event_; std::optional saved_rect_; + + std::shared_ptr override_cursor_; }; } // namespace cru::ui::host -- cgit v1.2.3