diff options
Diffstat (limited to 'src/ui/ui_manager.hpp')
-rw-r--r-- | src/ui/ui_manager.hpp | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/ui/ui_manager.hpp b/src/ui/ui_manager.hpp deleted file mode 100644 index 107b536c..00000000 --- a/src/ui/ui_manager.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#pragma once -#include "pre.hpp" - -#include "base.hpp" - -struct ID2D1Brush; -struct IDWriteTextFormat; -namespace cru::graph { -class GraphManager; -} - -namespace cru::ui { -struct CaretInfo { - std::chrono::milliseconds caret_blink_duration; - float half_caret_width; -}; - -class PredefineResources : public Object { - public: - PredefineResources(); - PredefineResources(const PredefineResources& other) = delete; - PredefineResources(PredefineResources&& other) = delete; - PredefineResources& operator=(const PredefineResources& other) = delete; - PredefineResources& operator=(PredefineResources&& other) = delete; - ~PredefineResources() override; - - // region Button - ID2D1Brush* button_normal_border_brush = nullptr; - - // region TextBlock - ID2D1Brush* text_block_selection_brush = nullptr; - ID2D1Brush* text_block_text_brush = nullptr; - IDWriteTextFormat* text_block_text_format = nullptr; -}; - -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 = default; - - CaretInfo GetCaretInfo() const { return caret_info_; } - - const PredefineResources* GetPredefineResources() const { - return &predefine_resources_; - } - - private: - CaretInfo caret_info_; - - PredefineResources predefine_resources_; -}; -} // namespace cru::ui |