diff options
author | crupest <crupest@outlook.com> | 2019-03-24 19:06:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-24 19:06:17 +0800 |
commit | 79d1d76509dbf6cf9c79f8eb55968535982975aa (patch) | |
tree | 322ed87621506f2e56f4887c73370db769843a29 /src/ui/ui_manager.hpp | |
parent | e8be3841457853daefc26d0ca00256ad8c44f593 (diff) | |
download | cru-79d1d76509dbf6cf9c79f8eb55968535982975aa.tar.gz cru-79d1d76509dbf6cf9c79f8eb55968535982975aa.tar.bz2 cru-79d1d76509dbf6cf9c79f8eb55968535982975aa.zip |
...
Diffstat (limited to 'src/ui/ui_manager.hpp')
-rw-r--r-- | src/ui/ui_manager.hpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/ui/ui_manager.hpp b/src/ui/ui_manager.hpp index c2331dd4..b736381d 100644 --- a/src/ui/ui_manager.hpp +++ b/src/ui/ui_manager.hpp @@ -18,22 +18,17 @@ struct CaretInfo { class PredefineResources : public Object { public: - explicit PredefineResources(graph::GraphManager* graph_manager); + PredefineResources(); PredefineResources(const PredefineResources& other) = delete; PredefineResources(PredefineResources&& other) = delete; PredefineResources& operator=(const PredefineResources& other) = delete; PredefineResources& operator=(PredefineResources&& other) = delete; - ~PredefineResources() override = default; + ~PredefineResources() override; // region TextBlock - Microsoft::WRL::ComPtr<ID2D1Brush> text_block_selection_brush; - Microsoft::WRL::ComPtr<ID2D1Brush> text_block_text_brush; - Microsoft::WRL::ComPtr<IDWriteTextFormat> text_block_text_format; - - // region debug - Microsoft::WRL::ComPtr<ID2D1Brush> debug_layout_out_border_brush; - Microsoft::WRL::ComPtr<ID2D1Brush> debug_layout_margin_brush; - Microsoft::WRL::ComPtr<ID2D1Brush> debug_layout_padding_brush; + ID2D1Brush* text_block_selection_brush = nullptr; + ID2D1Brush* text_block_text_brush = nullptr; + IDWriteTextFormat* text_block_text_format = nullptr; }; class UiManager : public Object { |