diff options
author | crupest <crupest@outlook.com> | 2020-03-03 00:39:10 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-03 00:39:10 +0800 |
commit | b0946c0e6dc163fe981f230302a1976449150907 (patch) | |
tree | 3786417609ec00e42c0e9a102c39238135dfc9b5 /include/cru/ui/controls/text_box.hpp | |
parent | ebb8f7beba71fc0d3cd81f60559e4005e05e48d5 (diff) | |
download | cru-b0946c0e6dc163fe981f230302a1976449150907.tar.gz cru-b0946c0e6dc163fe981f230302a1976449150907.tar.bz2 cru-b0946c0e6dc163fe981f230302a1976449150907.zip |
...
Diffstat (limited to 'include/cru/ui/controls/text_box.hpp')
-rw-r--r-- | include/cru/ui/controls/text_box.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/cru/ui/controls/text_box.hpp b/include/cru/ui/controls/text_box.hpp index 48168e9d..76a6299e 100644 --- a/include/cru/ui/controls/text_box.hpp +++ b/include/cru/ui/controls/text_box.hpp @@ -1,6 +1,14 @@ #pragma once #include "../no_child_control.hpp" +#include <memory> + +namespace cru::ui::render { +class BorderRenderObject; +class TextRenderObject; +class CanvasRenderObject; +} // namespace cru::ui::render + namespace cru::ui::controls { class TextBox : public NoChildControl { public: @@ -16,5 +24,10 @@ class TextBox : public NoChildControl { ~TextBox() override; std::string_view GetControlType() const final { return control_type; } + + private: + std::unique_ptr<render::BorderRenderObject> border_render_object_; + std::unique_ptr<render::TextRenderObject> text_render_object_; + std::unique_ptr<render::CanvasRenderObject> caret_render_object_; }; } // namespace cru::ui::controls |