aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-24 00:03:16 +0800
committercrupest <crupest@outlook.com>2020-04-24 00:03:16 +0800
commit75ff8a6a05afd02aaadf7e3049b0a0e305241182 (patch)
tree5444bbb3ef80036cc38a827b8ccf03f48b310728 /include/cru/ui/controls
parent922d7f6c96f81a33538900f8a8992a5b6f640874 (diff)
downloadcru-75ff8a6a05afd02aaadf7e3049b0a0e305241182.tar.gz
cru-75ff8a6a05afd02aaadf7e3049b0a0e305241182.tar.bz2
cru-75ff8a6a05afd02aaadf7e3049b0a0e305241182.zip
...
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r--include/cru/ui/controls/text_block.hpp5
-rw-r--r--include/cru/ui/controls/text_box.hpp5
2 files changed, 0 insertions, 10 deletions
diff --git a/include/cru/ui/controls/text_block.hpp b/include/cru/ui/controls/text_block.hpp
index ec61a08c..61f568c4 100644
--- a/include/cru/ui/controls/text_block.hpp
+++ b/include/cru/ui/controls/text_block.hpp
@@ -29,14 +29,9 @@ class TextBlock : public NoChildControl {
void SetText(std::string text);
render::TextRenderObject* GetTextRenderObject();
- render::CanvasRenderObject* GetCaretRenderObject();
- std::shared_ptr<platform::graph::IBrush> GetCaretBrush();
private:
- std::unique_ptr<render::StackLayoutRenderObject> root_render_object_;
std::unique_ptr<render::TextRenderObject> text_render_object_;
- std::unique_ptr<render::CanvasRenderObject> caret_render_object_;
- std::shared_ptr<platform::graph::IBrush> caret_brush_;
std::unique_ptr<TextControlService<TextBlock>> service_;
};
diff --git a/include/cru/ui/controls/text_box.hpp b/include/cru/ui/controls/text_box.hpp
index f5347430..c0160658 100644
--- a/include/cru/ui/controls/text_box.hpp
+++ b/include/cru/ui/controls/text_box.hpp
@@ -22,8 +22,6 @@ class TextBox : public NoChildControl {
std::string_view GetControlType() const final { return control_type; }
render::TextRenderObject* GetTextRenderObject();
- render::CanvasRenderObject* GetCaretRenderObject();
- std::shared_ptr<platform::graph::IBrush> GetCaretBrush();
const TextBoxBorderStyle& GetBorderStyle();
void SetBorderStyle(TextBoxBorderStyle border_style);
@@ -36,11 +34,8 @@ class TextBox : public NoChildControl {
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_;
- std::shared_ptr<platform::graph::IBrush> caret_brush_;
TextBoxBorderStyle border_style_;
std::unique_ptr<TextControlService<TextBox>> service_;