diff options
Diffstat (limited to 'include/cru/ui/UiManager.hpp')
-rw-r--r-- | include/cru/ui/UiManager.hpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/include/cru/ui/UiManager.hpp b/include/cru/ui/UiManager.hpp deleted file mode 100644 index 9ac7f416..00000000 --- a/include/cru/ui/UiManager.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once -#include "Base.hpp" - -#include "controls/Base.hpp" -#include "cru/platform/graphics/Brush.hpp" -#include "cru/ui/helper/ClickDetector.hpp" -#include "style/StyleRuleSet.hpp" - -#include <gsl/pointers> -#include <memory> -#include <string> -#include <unordered_map> - -namespace cru::ui { -struct ThemeResources { - String default_font_family; - std::shared_ptr<platform::graphics::IFont> default_font; - std::shared_ptr<platform::graphics::IBrush> text_brush; - std::shared_ptr<platform::graphics::IBrush> text_selection_brush; - std::shared_ptr<platform::graphics::IBrush> caret_brush; -}; - -class CRU_UI_API 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_; } - - void ReadResourcesFile(const String& file_path); - - private: - ThemeResources theme_resource_; -}; -} // namespace cru::ui |