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/ui/controls/text_box.hpp | |
parent | 4b219b569c16db6027dd36e4656152f261321c60 (diff) | |
download | cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.gz cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.bz2 cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.zip |
Add predefine resource.
Diffstat (limited to 'src/ui/controls/text_box.hpp')
-rw-r--r-- | src/ui/controls/text_box.hpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/controls/text_box.hpp b/src/ui/controls/text_box.hpp index 434aa232..65f81fc3 100644 --- a/src/ui/controls/text_box.hpp +++ b/src/ui/controls/text_box.hpp @@ -10,18 +10,13 @@ namespace cru::ui::controls public: static constexpr auto control_type = L"TextBox"; - static TextBox* Create( - const Microsoft::WRL::ComPtr<IDWriteTextFormat>& init_text_format = nullptr, - const Microsoft::WRL::ComPtr<ID2D1Brush>& init_brush = nullptr) + static TextBox* Create() { - return new TextBox(init_text_format, init_brush); + return new TextBox(); } protected: - explicit TextBox( - const Microsoft::WRL::ComPtr<IDWriteTextFormat>& init_text_format, - const Microsoft::WRL::ComPtr<ID2D1Brush>& init_brush - ); + TextBox(); public: TextBox(const TextBox& other) = delete; TextBox(TextBox&& other) = delete; |