aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/TextBlock.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-07-05 18:13:10 +0800
committercrupest <crupest@outlook.com>2020-07-05 18:13:10 +0800
commitce56ab59a6d68c220fcc47c6977c618eaa43de7a (patch)
treed6775d0ffa6f4fde00e69ed82192bc6c5b25d45b /include/cru/ui/controls/TextBlock.hpp
parente10ef322e5f6268aec5d7717a82fceb42607a000 (diff)
downloadcru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.tar.gz
cru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.tar.bz2
cru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.zip
...
Diffstat (limited to 'include/cru/ui/controls/TextBlock.hpp')
-rw-r--r--include/cru/ui/controls/TextBlock.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cru/ui/controls/TextBlock.hpp b/include/cru/ui/controls/TextBlock.hpp
index dd8b40b4..1b1b4a5c 100644
--- a/include/cru/ui/controls/TextBlock.hpp
+++ b/include/cru/ui/controls/TextBlock.hpp
@@ -28,7 +28,8 @@ class TextBlock : public NoChildControl {
std::string GetText() const;
void SetText(std::string text);
- render::TextRenderObject* GetTextRenderObject();
+ gsl::not_null<render::TextRenderObject*> GetTextRenderObject();
+ render::ScrollRenderObject* GetScrollRenderObject() { return nullptr; }
private:
std::unique_ptr<render::TextRenderObject> text_render_object_;