diff options
author | crupest <crupest@outlook.com> | 2018-11-09 20:57:29 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-09 20:57:29 +0800 |
commit | 9ef75fe91837394620edb91f332065a4f34a0281 (patch) | |
tree | 39a3e67f9a34ce44cc65b74d0ec82691cffd5dfa /src/ui/window.hpp | |
parent | efdce672123284847bd7fb6f12ac1ec96f28f3ef (diff) | |
download | cru-9ef75fe91837394620edb91f332065a4f34a0281.tar.gz cru-9ef75fe91837394620edb91f332065a4f34a0281.tar.bz2 cru-9ef75fe91837394620edb91f332065a4f34a0281.zip |
Add singleton system.
Diffstat (limited to 'src/ui/window.hpp')
-rw-r--r-- | src/ui/window.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/window.hpp b/src/ui/window.hpp index 9f773f55..2609594d 100644 --- a/src/ui/window.hpp +++ b/src/ui/window.hpp @@ -44,7 +44,10 @@ namespace cru::ui class WindowManager : public Object { public: + static WindowManager* GetInstance(); + private: WindowManager(); + public: WindowManager(const WindowManager& other) = delete; WindowManager(WindowManager&& other) = delete; WindowManager& operator=(const WindowManager& other) = delete; |