aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-19 01:15:01 +0800
committercrupest <crupest@outlook.com>2018-09-19 01:15:01 +0800
commit85bb4d466efeb2540363065d7c0987a9d60f70e9 (patch)
treeea5e5aa738afb37a2d3bc4e74f9be64c15f3d188 /CruUI/ui/control.cpp
parent4710715102df3806479985679bd8048631ccaab5 (diff)
downloadcru-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.cpp8
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);