aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/TextBlock.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-17 18:53:48 +0800
committercrupest <crupest@outlook.com>2021-11-17 18:53:48 +0800
commit7be210036e363f2105ace761451448507d4b06d8 (patch)
treef1facc5899f35dd02efdb9e0aadd26155d5499d5 /include/cru/ui/controls/TextBlock.hpp
parent17e35c8ebb51c2679421330056615fa8678b939e (diff)
downloadcru-7be210036e363f2105ace761451448507d4b06d8.tar.gz
cru-7be210036e363f2105ace761451448507d4b06d8.tar.bz2
cru-7be210036e363f2105ace761451448507d4b06d8.zip
...
Diffstat (limited to 'include/cru/ui/controls/TextBlock.hpp')
-rw-r--r--include/cru/ui/controls/TextBlock.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/controls/TextBlock.hpp b/include/cru/ui/controls/TextBlock.hpp
index b3ce21c5..710a39d8 100644
--- a/include/cru/ui/controls/TextBlock.hpp
+++ b/include/cru/ui/controls/TextBlock.hpp
@@ -6,7 +6,7 @@
namespace cru::ui::controls {
class TextBlock : public NoChildControl, public virtual ITextHostControl {
public:
- static constexpr std::u16string_view control_type = u"TextBlock";
+ static constexpr StringView control_type = u"TextBlock";
static TextBlock* Create();
static TextBlock* Create(String text, bool selectable = false);
@@ -21,7 +21,7 @@ class TextBlock : public NoChildControl, public virtual ITextHostControl {
TextBlock& operator=(TextBlock&& other) = delete;
~TextBlock() override;
- std::u16string_view GetControlType() const final { return control_type; }
+ String GetControlType() const final { return control_type.ToString(); }
render::RenderObject* GetRenderObject() const override;