aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_box.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/text_box.hpp')
-rw-r--r--src/ui/controls/text_box.hpp11
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;