aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/control.h
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.h
parent4710715102df3806479985679bd8048631ccaab5 (diff)
downloadcru-85bb4d466efeb2540363065d7c0987a9d60f70e9.tar.gz
cru-85bb4d466efeb2540363065d7c0987a9d60f70e9.tar.bz2
cru-85bb4d466efeb2540363065d7c0987a9d60f70e9.zip
finish animation!!!
Diffstat (limited to 'CruUI/ui/control.h')
-rw-r--r--CruUI/ui/control.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/CruUI/ui/control.h b/CruUI/ui/control.h
index ca2dfb84..daae1787 100644
--- a/CruUI/ui/control.h
+++ b/CruUI/ui/control.h
@@ -60,8 +60,8 @@ namespace cru
}
//Traverse the children
- void ForeachChild(Action<Control*>&& predicate) const;
- void ForeachChild(FlowControlAction<Control*>&& predicate) const;
+ void ForeachChild(Function<void(Control*)>&& predicate) const;
+ void ForeachChild(Function<FlowControl(Control*)>&& predicate) const;
//Return a vector of all children. This function will create a
//temporary copy of vector of children. If you just want to
@@ -93,7 +93,7 @@ namespace cru
}
//Traverse the tree rooted the control including itself.
- void TraverseDescendants(Action<Control*>&& predicate);
+ void TraverseDescendants(Function<void(Control*)>&& predicate);
//*************** region: position and size ***************
// Position and size part must be isolated from layout part.