diff options
author | crupest <crupest@outlook.com> | 2020-05-23 23:50:00 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-05-23 23:50:00 +0800 |
commit | f3a8fd608a9776ef0a5f547da918a32cf6074060 (patch) | |
tree | 85b320479296ae12339ee1e28bab66ab001cb44b /include/cru/ui/controls | |
parent | 75ff8a6a05afd02aaadf7e3049b0a0e305241182 (diff) | |
download | cru-f3a8fd608a9776ef0a5f547da918a32cf6074060.tar.gz cru-f3a8fd608a9776ef0a5f547da918a32cf6074060.tar.bz2 cru-f3a8fd608a9776ef0a5f547da918a32cf6074060.zip |
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r-- | include/cru/ui/controls/text_box.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/ui/controls/text_box.hpp b/include/cru/ui/controls/text_box.hpp index c0160658..15fcb734 100644 --- a/include/cru/ui/controls/text_box.hpp +++ b/include/cru/ui/controls/text_box.hpp @@ -2,6 +2,8 @@ #include "../no_child_control.hpp" #include "base.hpp" +#include <memory> + namespace cru::ui::controls { template <typename TControl> class TextControlService; @@ -10,6 +12,8 @@ class TextBox : public NoChildControl { public: static constexpr std::string_view control_type = "TextBox"; + static TextBox* Create() { return new TextBox(); } + protected: TextBox(); @@ -21,6 +25,8 @@ class TextBox : public NoChildControl { std::string_view GetControlType() const final { return control_type; } + render::RenderObject* GetRenderObject() const override; + render::TextRenderObject* GetTextRenderObject(); const TextBoxBorderStyle& GetBorderStyle(); |