aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/TextBlock.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-26 16:32:13 +0800
committercrupest <crupest@outlook.com>2021-10-26 16:32:13 +0800
commit9dec93315173999c4fb9ab5a0e57909eb5e7fd8b (patch)
tree042fff007fc3d0959146f131f425b9626448718e /include/cru/ui/controls/TextBlock.hpp
parent397843cda9e4161d3e92d8797f8012f478ce64f0 (diff)
downloadcru-9dec93315173999c4fb9ab5a0e57909eb5e7fd8b.tar.gz
cru-9dec93315173999c4fb9ab5a0e57909eb5e7fd8b.tar.bz2
cru-9dec93315173999c4fb9ab5a0e57909eb5e7fd8b.zip
...
Diffstat (limited to 'include/cru/ui/controls/TextBlock.hpp')
-rw-r--r--include/cru/ui/controls/TextBlock.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/ui/controls/TextBlock.hpp b/include/cru/ui/controls/TextBlock.hpp
index be31816c..b3ce21c5 100644
--- a/include/cru/ui/controls/TextBlock.hpp
+++ b/include/cru/ui/controls/TextBlock.hpp
@@ -9,7 +9,7 @@ class TextBlock : public NoChildControl, public virtual ITextHostControl {
static constexpr std::u16string_view control_type = u"TextBlock";
static TextBlock* Create();
- static TextBlock* Create(std::u16string text, bool selectable = false);
+ static TextBlock* Create(String text, bool selectable = false);
protected:
TextBlock();
@@ -25,8 +25,8 @@ class TextBlock : public NoChildControl, public virtual ITextHostControl {
render::RenderObject* GetRenderObject() const override;
- std::u16string GetText() const;
- void SetText(std::u16string text);
+ String GetText() const;
+ void SetText(String text);
bool IsSelectable() const;
void SetSelectable(bool value);