aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls
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 /src/ui/controls
parent381d0831f72dc52831bbfb66d9e7db10a86760e5 (diff)
downloadcru-7fd9ca808c908c67d9bec2183034ad16ea86a912.tar.gz
cru-7fd9ca808c908c67d9bec2183034ad16ea86a912.tar.bz2
cru-7fd9ca808c908c67d9bec2183034ad16ea86a912.zip
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r--src/ui/controls/flex_layout.cpp4
-rw-r--r--src/ui/controls/stack_layout.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/controls/flex_layout.cpp b/src/ui/controls/flex_layout.cpp
index c881b6f1..5412164a 100644
--- a/src/ui/controls/flex_layout.cpp
+++ b/src/ui/controls/flex_layout.cpp
@@ -59,11 +59,11 @@ void FlexLayout::SetFlexDirection(FlexDirection direction) {
render_object_->SetFlexDirection(direction);
}
-void FlexLayout::OnAddChild(Control* child, int position) {
+void FlexLayout::OnAddChild(Control* child, const Index position) {
render_object_->AddChild(child->GetRenderObject(), position);
}
-void FlexLayout::OnRemoveChild(Control* child, int position) {
+void FlexLayout::OnRemoveChild(Control* child, const Index position) {
CRU_UNUSED(child)
render_object_->RemoveChild(position);
diff --git a/src/ui/controls/stack_layout.cpp b/src/ui/controls/stack_layout.cpp
index b9abb510..47511f33 100644
--- a/src/ui/controls/stack_layout.cpp
+++ b/src/ui/controls/stack_layout.cpp
@@ -15,11 +15,11 @@ render::RenderObject* StackLayout::GetRenderObject() const {
return render_object_.get();
}
-void StackLayout::OnAddChild(Control* child, int position) {
+void StackLayout::OnAddChild(Control* child, const Index position) {
render_object_->AddChild(child->GetRenderObject(), position);
}
-void StackLayout::OnRemoveChild(Control* child, int position) {
+void StackLayout::OnRemoveChild(Control* child, const Index position) {
CRU_UNUSED(child)
render_object_->RemoveChild(position);