aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/text_box.hpp
blob: a7e4dfa0b55938e8607f3beaf673e56d49b78d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "../no_child_control.hpp"

namespace cru::ui::controls {
class TextBox : public NoChildControl {
 public:
  static constexpr std::string_view control_type = "TextBox";

 protected:
  TextBox();

 public:
  CRU_DELETE_COPY(TextBox)
  CRU_DELETE_MOVE(TextBox)

  ~TextBox() override;

  std::string_view GetControlType() const final { return control_type; }

 private:
  std::unique_ptr<render::BorderRenderObject> border_render_object_;
  std::unique_ptr<render::StackLayoutRenderObject> stack_layout_render_object_;
  std::unique_ptr<render::TextRenderObject> text_render_object_;
  std::unique_ptr<render::CanvasRenderObject> caret_render_object_;
};
}  // namespace cru::ui::controls