diff options
Diffstat (limited to 'src/ui/controls/text_box.h')
-rw-r--r-- | src/ui/controls/text_box.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/controls/text_box.h b/src/ui/controls/text_box.h index a2f4e6e8..85a5942d 100644 --- a/src/ui/controls/text_box.h +++ b/src/ui/controls/text_box.h @@ -8,6 +8,8 @@ namespace cru::ui::controls class TextBox : public TextControl { 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) @@ -27,6 +29,8 @@ namespace cru::ui::controls TextBox& operator=(TextBox&& other) = delete; ~TextBox() override; + StringView GetControlType() const override final; + protected: void OnDrawContent(ID2D1DeviceContext* device_context) override; |