diff options
author | crupest <crupest@outlook.com> | 2022-02-09 22:29:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-09 22:29:17 +0800 |
commit | e18c4fb46d7913f337cc25b9a6e3a25359c3f10a (patch) | |
tree | ca0d2ba0477af904c2b3ccc0f1b4ea5d3c101dc0 /include/cru/ui/render/TextRenderObject.h | |
parent | 1cbbad7166ca3dad08f947aeea5d7efc197bd2f3 (diff) | |
download | cru-e18c4fb46d7913f337cc25b9a6e3a25359c3f10a.tar.gz cru-e18c4fb46d7913f337cc25b9a6e3a25359c3f10a.tar.bz2 cru-e18c4fb46d7913f337cc25b9a6e3a25359c3f10a.zip |
...
Diffstat (limited to 'include/cru/ui/render/TextRenderObject.h')
-rw-r--r-- | include/cru/ui/render/TextRenderObject.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/render/TextRenderObject.h b/include/cru/ui/render/TextRenderObject.h index 3b5f581a..f3a7332f 100644 --- a/include/cru/ui/render/TextRenderObject.h +++ b/include/cru/ui/render/TextRenderObject.h @@ -91,17 +91,17 @@ class CRU_UI_API TextRenderObject : public RenderObject { RenderObject* HitTest(const Point& point) override; - std::u16string_view GetName() const override { return u"TextRenderObject"; } + String GetName() const override { return u"TextRenderObject"; } - protected: - void OnDrawContent(platform::graphics::IPainter* painter) override; + void Draw(platform::graphics::IPainter* painter) override; + protected: // See remarks of this class. Size OnMeasureContent(const MeasureRequirement& requirement, const MeasureSize& preferred_size) override; void OnLayoutContent(const Rect& content_rect) override; - void OnAfterLayout() override; + void OnResize(const Size& size) override; private: std::shared_ptr<platform::graphics::IBrush> brush_; |