diff options
Diffstat (limited to 'include/cru/ui/controls')
-rw-r--r-- | include/cru/ui/controls/flex_layout.hpp | 4 | ||||
-rw-r--r-- | include/cru/ui/controls/stack_layout.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/controls/flex_layout.hpp b/include/cru/ui/controls/flex_layout.hpp index 52eaec75..ab08a80b 100644 --- a/include/cru/ui/controls/flex_layout.hpp +++ b/include/cru/ui/controls/flex_layout.hpp @@ -32,8 +32,8 @@ class FlexLayout : public LayoutControl { void SetChildLayoutData(Control* control, const FlexChildLayoutData& data); protected: - void OnAddChild(Control* child, int position) override; - void OnRemoveChild(Control* child, int position) override; + void OnAddChild(Control* child, Index position) override; + void OnRemoveChild(Control* child, Index position) override; private: std::shared_ptr<render::FlexLayoutRenderObject> render_object_; diff --git a/include/cru/ui/controls/stack_layout.hpp b/include/cru/ui/controls/stack_layout.hpp index 93861c19..20da0e82 100644 --- a/include/cru/ui/controls/stack_layout.hpp +++ b/include/cru/ui/controls/stack_layout.hpp @@ -22,8 +22,8 @@ class StackLayout : public LayoutControl { render::RenderObject* GetRenderObject() const override; protected: - void OnAddChild(Control* child, int position) override; - void OnRemoveChild(Control* child, int position) override; + void OnAddChild(Control* child, Index position) override; + void OnRemoveChild(Control* child, Index position) override; private: std::shared_ptr<render::StackLayoutRenderObject> render_object_; |