From d86a71f79afe0e4dac768f61d6bff690567aca5b Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 24 May 2020 01:40:02 +0800 Subject: ... --- include/cru/ui/ui_manager.hpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 include/cru/ui/ui_manager.hpp (limited to 'include/cru/ui/ui_manager.hpp') diff --git a/include/cru/ui/ui_manager.hpp b/include/cru/ui/ui_manager.hpp deleted file mode 100644 index 9ad184c4..00000000 --- a/include/cru/ui/ui_manager.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once -#include "base.hpp" - -#include "controls/base.hpp" - -namespace cru::ui { -struct ThemeResources { - std::shared_ptr default_font; - std::shared_ptr text_brush; - std::shared_ptr text_selection_brush; - std::shared_ptr caret_brush; - controls::ButtonStyle button_style; - controls::TextBoxBorderStyle text_box_border_style; -}; - -class UiManager : public Object { - public: - static UiManager* GetInstance(); - - private: - UiManager(); - - public: - UiManager(const UiManager& other) = delete; - UiManager(UiManager&& other) = delete; - UiManager& operator=(const UiManager& other) = delete; - UiManager& operator=(UiManager&& other) = delete; - ~UiManager() override; - - ThemeResources* GetThemeResources() { return &theme_resource_; } - - private: - ThemeResources theme_resource_; -}; -} // namespace cru::ui -- cgit v1.2.3