aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-29 00:29:04 +0800
committercrupest <crupest@outlook.com>2020-10-29 00:29:04 +0800
commitb4cb4fb7552d35c267bdb66913e4c822f16346ab (patch)
treea453ccaaec995b1cb56facf3998381328a069b7d /include/cru/ui/render
parent6c77f107084908af8d10ded015ccd03663cdc893 (diff)
downloadcru-b4cb4fb7552d35c267bdb66913e4c822f16346ab.tar.gz
cru-b4cb4fb7552d35c267bdb66913e4c822f16346ab.tar.bz2
cru-b4cb4fb7552d35c267bdb66913e4c822f16346ab.zip
...
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r--include/cru/ui/render/RenderObject.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/ui/render/RenderObject.hpp b/include/cru/ui/render/RenderObject.hpp
index 4e5c9060..20e095fa 100644
--- a/include/cru/ui/render/RenderObject.hpp
+++ b/include/cru/ui/render/RenderObject.hpp
@@ -74,6 +74,8 @@ class RenderObject : public Object {
void AddChild(RenderObject* render_object, Index position);
void RemoveChild(Index position);
+ void TraverseDescendants(const std::function<void(RenderObject*)>& action);
+
// Offset from parent's lefttop to lefttop of this render object. Margin is
// accounted for.
Point GetOffset() const { return offset_; }