diff options
author | crupest <crupest@outlook.com> | 2022-02-09 21:13:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-09 21:13:20 +0800 |
commit | 1cbbad7166ca3dad08f947aeea5d7efc197bd2f3 (patch) | |
tree | 4479041024974fa9f8c819111aff5ec1a031d326 /include/cru/ui/render/RenderObject.h | |
parent | 18088da4fc1273889b854e659021353217788d04 (diff) | |
download | cru-1cbbad7166ca3dad08f947aeea5d7efc197bd2f3.tar.gz cru-1cbbad7166ca3dad08f947aeea5d7efc197bd2f3.tar.bz2 cru-1cbbad7166ca3dad08f947aeea5d7efc197bd2f3.zip |
...
Diffstat (limited to 'include/cru/ui/render/RenderObject.h')
-rw-r--r-- | include/cru/ui/render/RenderObject.h | 8 |
1 files changed, 6 insertions, 2 deletions
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. |