From 9110574bb51e9e2959842a7641f598d34c3cd847 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 13 Dec 2019 01:02:47 +0800 Subject: ... --- include/cru/platform/native/ui_application.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/cru/platform/native') diff --git a/include/cru/platform/native/ui_application.hpp b/include/cru/platform/native/ui_application.hpp index c1f10d15..b69b1f52 100644 --- a/include/cru/platform/native/ui_application.hpp +++ b/include/cru/platform/native/ui_application.hpp @@ -15,6 +15,12 @@ struct ICursorManager; // The entry point of a ui application. struct IUiApplication : public virtual INativeResource { + public: + static IUiApplication* GetInstance() { return instance; } + + protected: + static IUiApplication* instance; + public: // Block current thread and run the message loop. Return the exit code when // message loop gets a quit message (possibly posted by method RequestQuit). -- cgit v1.2.3