diff options
Diffstat (limited to 'include/cru/ui/controls/TextBlock.hpp')
-rw-r--r-- | include/cru/ui/controls/TextBlock.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/controls/TextBlock.hpp b/include/cru/ui/controls/TextBlock.hpp index 1b1b4a5c..8a9a3bff 100644 --- a/include/cru/ui/controls/TextBlock.hpp +++ b/include/cru/ui/controls/TextBlock.hpp @@ -7,7 +7,7 @@ class TextControlService; class TextBlock : public NoChildControl { public: - static constexpr std::string_view control_type = "TextBlock"; + static constexpr std::u16string_view control_type = u"TextBlock"; static TextBlock* Create() { return new TextBlock(); } @@ -21,12 +21,12 @@ class TextBlock : public NoChildControl { TextBlock& operator=(TextBlock&& other) = delete; ~TextBlock() override; - std::string_view GetControlType() const final { return control_type; } + std::u16string_view GetControlType() const final { return control_type; } render::RenderObject* GetRenderObject() const override; - std::string GetText() const; - void SetText(std::string text); + std::u16string GetText() const; + void SetText(std::u16string text); gsl::not_null<render::TextRenderObject*> GetTextRenderObject(); render::ScrollRenderObject* GetScrollRenderObject() { return nullptr; } |