From 57353bd3acd97957cb5f970016fec52977cc6e95 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 2 Mar 2022 22:07:33 +0800 Subject: ... --- include/cru/ui/render/RenderObject.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/cru/ui/render/RenderObject.h') diff --git a/include/cru/ui/render/RenderObject.h b/include/cru/ui/render/RenderObject.h index e8dc3b17..9f2b69d9 100644 --- a/include/cru/ui/render/RenderObject.h +++ b/include/cru/ui/render/RenderObject.h @@ -32,8 +32,9 @@ namespace cru::ui::render { * void Draw(platform::graphics::IPainter* painter) override; * RenderObject* HitTest(const Point& point) override; * protected: - * Size OnMeasureContent(const MeasureRequirement& requirement) override; - * void OnLayoutContent(const Rect& content_rect) override; + * Size OnMeasureContent(const MeasureRequirement& requirement, const + * MeasureSize& preferred_size) override; void OnLayoutContent(const Rect& + * content_rect) override; */ class CRU_UI_API RenderObject : public Object { CRU_DEFINE_CLASS_LOG_TAG(u"RenderObject") @@ -93,7 +94,9 @@ class CRU_UI_API RenderObject : public Object { // This will set offset of this render object and call OnLayoutCore. void Layout(const Point& offset); - virtual Thickness GetOuterSpaceThickness() const; + virtual Thickness GetTotalSpaceThickness() const; + virtual Thickness GetInnerSpaceThickness() const; + virtual Rect GetPaddingRect() const; virtual Rect GetContentRect() const; -- cgit v1.2.3