From 1cbbad7166ca3dad08f947aeea5d7efc197bd2f3 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 9 Feb 2022 21:13:20 +0800 Subject: ... --- include/cru/ui/render/RenderObject.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 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 1e47e7fc..a4ac0f4b 100644 --- a/include/cru/ui/render/RenderObject.h +++ b/include/cru/ui/render/RenderObject.h @@ -170,10 +170,14 @@ class CRU_UI_API RenderObject : public Object { // default is to invalidate both layout and paint virtual void OnRemoveChild(RenderObject* removed_child, Index position); - // Draw all children with offset. + /** + * \brief Draw all children with offset. + */ void DefaultDrawChildren(platform::graphics::IPainter* painter); - // Draw all children with translation of content rect lefttop. + /** + * \brief Call OnDrawContent with translation of content rect lefttop. + */ void DefaultDrawContent(platform::graphics::IPainter* painter); // Call DefaultDrawContent. Then call DefaultDrawChildren. -- cgit v1.2.3