From f3a8fd608a9776ef0a5f547da918a32cf6074060 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 23 May 2020 23:50:00 +0800 Subject: ... --- include/cru/ui/controls/text_box.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/cru/ui/controls') 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 + namespace cru::ui::controls { template 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(); -- cgit v1.2.3