diff options
author | crupest <crupest@outlook.com> | 2018-11-09 22:59:38 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-09 22:59:38 +0800 |
commit | ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9 (patch) | |
tree | e5b886f1884fa56dd90059523b1f4dc730bb5003 /src/application.hpp | |
parent | 4b219b569c16db6027dd36e4656152f261321c60 (diff) | |
download | cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.gz cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.bz2 cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.zip |
Add predefine resource.
Diffstat (limited to 'src/application.hpp')
-rw-r--r-- | src/application.hpp | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/src/application.hpp b/src/application.hpp index c286cc08..0c345328 100644 --- a/src/application.hpp +++ b/src/application.hpp @@ -38,15 +38,6 @@ namespace cru float half_caret_width; }; -#ifdef CRU_DEBUG_LAYOUT - struct DebugLayoutResource - { - Microsoft::WRL::ComPtr<ID2D1Brush> out_border_brush; - Microsoft::WRL::ComPtr<ID2D1Brush> margin_brush; - Microsoft::WRL::ComPtr<ID2D1Brush> padding_brush; - }; -#endif - class GodWindow : public Object { public: @@ -122,18 +113,11 @@ namespace cru return caret_info_; } - AnyMap* GetThemeMap() + const AnyMap* GetPredefineResourceMap() const { - return &theme_map_; + return &predefine_resource_map_; } -#ifdef CRU_DEBUG_LAYOUT - const DebugLayoutResource* GetDebugLayoutResource() const - { - return &debug_layout_resource_; - } -#endif - private: HINSTANCE h_instance_; @@ -142,13 +126,9 @@ namespace cru std::unordered_map<std::type_index, Object*> singleton_map_; std::list<Object*> singleton_list_; // used for reverse destroy. -#ifdef CRU_DEBUG_LAYOUT - DebugLayoutResource debug_layout_resource_; -#endif - CaretInfo caret_info_; - AnyMap theme_map_{}; + AnyMap predefine_resource_map_{}; }; |