aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/layout_control.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-02 21:09:06 +0800
committercrupest <crupest@outlook.com>2020-04-02 21:09:06 +0800
commit7fd9ca808c908c67d9bec2183034ad16ea86a912 (patch)
treedd4287e511404aa2da07ea078b4bc2c76d4874fc /include/cru/ui/layout_control.hpp
parent381d0831f72dc52831bbfb66d9e7db10a86760e5 (diff)
downloadcru-7fd9ca808c908c67d9bec2183034ad16ea86a912.tar.gz
cru-7fd9ca808c908c67d9bec2183034ad16ea86a912.tar.bz2
cru-7fd9ca808c908c67d9bec2183034ad16ea86a912.zip
...
Diffstat (limited to 'include/cru/ui/layout_control.hpp')
-rw-r--r--include/cru/ui/layout_control.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/layout_control.hpp b/include/cru/ui/layout_control.hpp
index 187f0e0d..e1856403 100644
--- a/include/cru/ui/layout_control.hpp
+++ b/include/cru/ui/layout_control.hpp
@@ -17,13 +17,13 @@ class LayoutControl : public Control {
return children_;
}
- void AddChild(Control* control, int position);
+ void AddChild(Control* control, Index position);
- void RemoveChild(int position);
+ void RemoveChild(Index position);
protected:
- virtual void OnAddChild(Control* child, int position);
- virtual void OnRemoveChild(Control* child, int position);
+ virtual void OnAddChild(Control* child, Index position);
+ virtual void OnRemoveChild(Control* child, Index position);
private:
std::vector<Control*> children_;