diff options
author | crupest <crupest@outlook.com> | 2021-10-21 17:44:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-21 17:44:56 +0800 |
commit | 72fc892792565ef39fcae6b7d2a19006dc3a3238 (patch) | |
tree | ea1609b424215e6fe86d6280ce86beea0c73b61b /include/cru/ui/render | |
parent | fc9cd10a84ea92dd702ac84d302ca46198d17d23 (diff) | |
download | cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.tar.gz cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.tar.bz2 cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.zip |
...
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r-- | include/cru/ui/render/TextRenderObject.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/cru/ui/render/TextRenderObject.hpp b/include/cru/ui/render/TextRenderObject.hpp index cf585d6f..ef39b7a6 100644 --- a/include/cru/ui/render/TextRenderObject.hpp +++ b/include/cru/ui/render/TextRenderObject.hpp @@ -34,13 +34,9 @@ class TextRenderObject : public RenderObject { TextRenderObject& operator=(TextRenderObject&& other) = delete; ~TextRenderObject() override; - std::u16string GetText() const; - std::u16string_view GetTextView() const; - void SetText(std::u16string new_text); + String GetText() const; + void SetText(String new_text); - std::shared_ptr<platform::graphics::IBrush> GetBrush() const { - return brush_; - } void SetBrush(std::shared_ptr<platform::graphics::IBrush> new_brush); std::shared_ptr<platform::graphics::IFont> GetFont() const; |