From 85bb4d466efeb2540363065d7c0987a9d60f70e9 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 19 Sep 2018 01:15:01 +0800 Subject: finish animation!!! --- CruUI/ui/control.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CruUI/ui/control.cpp') diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp index d2864fce..1fa7a08d 100644 --- a/CruUI/ui/control.cpp +++ b/CruUI/ui/control.cpp @@ -46,14 +46,14 @@ namespace cru { }); } - void Control::ForeachChild(Action&& predicate) const + void Control::ForeachChild(Function&& predicate) const { if (is_container_) for (const auto child : children_) predicate(child); } - void Control::ForeachChild(FlowControlAction&& predicate) const + void Control::ForeachChild(Function&& predicate) const { if (is_container_) for (const auto child : children_) @@ -141,7 +141,7 @@ namespace cru { return ancestor; } - void TraverseDescendantsInternal(Control* control, Action& predicate) + void TraverseDescendantsInternal(Control* control, Function& predicate) { predicate(control); control->ForeachChild([&predicate](Control* c) { @@ -149,7 +149,7 @@ namespace cru { }); } - void Control::TraverseDescendants(Action&& predicate) + void Control::TraverseDescendants(Function&& predicate) { if (is_container_) TraverseDescendantsInternal(this, predicate); -- cgit v1.2.3