aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-05-23 23:50:00 +0800
committercrupest <crupest@outlook.com>2020-05-23 23:50:00 +0800
commitf3a8fd608a9776ef0a5f547da918a32cf6074060 (patch)
tree85b320479296ae12339ee1e28bab66ab001cb44b /include/cru/ui/controls
parent75ff8a6a05afd02aaadf7e3049b0a0e305241182 (diff)
downloadcru-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.hpp6
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();