diff options
author | crupest <crupest@outlook.com> | 2018-09-19 01:15:01 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-19 01:15:01 +0800 |
commit | 85bb4d466efeb2540363065d7c0987a9d60f70e9 (patch) | |
tree | ea5e5aa738afb37a2d3bc4e74f9be64c15f3d188 /CruUI/ui/control.cpp | |
parent | 4710715102df3806479985679bd8048631ccaab5 (diff) | |
download | cru-85bb4d466efeb2540363065d7c0987a9d60f70e9.tar.gz cru-85bb4d466efeb2540363065d7c0987a9d60f70e9.tar.bz2 cru-85bb4d466efeb2540363065d7c0987a9d60f70e9.zip |
finish animation!!!
Diffstat (limited to 'CruUI/ui/control.cpp')
-rw-r--r-- | CruUI/ui/control.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<Control*>&& predicate) const + void Control::ForeachChild(Function<void(Control*)>&& predicate) const { if (is_container_) for (const auto child : children_) predicate(child); } - void Control::ForeachChild(FlowControlAction<Control*>&& predicate) const + void Control::ForeachChild(Function<FlowControl(Control*)>&& predicate) const { if (is_container_) for (const auto child : children_) @@ -141,7 +141,7 @@ namespace cru { return ancestor; } - void TraverseDescendantsInternal(Control* control, Action<Control*>& predicate) + void TraverseDescendantsInternal(Control* control, Function<void(Control*)>& predicate) { predicate(control); control->ForeachChild([&predicate](Control* c) { @@ -149,7 +149,7 @@ namespace cru { }); } - void Control::TraverseDescendants(Action<Control*>&& predicate) + void Control::TraverseDescendants(Function<void(Control*)>&& predicate) { if (is_container_) TraverseDescendantsInternal(this, predicate); |