From b4cb4fb7552d35c267bdb66913e4c822f16346ab Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 29 Oct 2020 00:29:04 +0800 Subject: ... --- include/cru/ui/render/RenderObject.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/cru/ui/render') 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& action); + // Offset from parent's lefttop to lefttop of this render object. Margin is // accounted for. Point GetOffset() const { return offset_; } -- cgit v1.2.3