aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/LayoutControl.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-29 00:01:26 +0800
committercrupest <crupest@outlook.com>2020-10-29 00:01:26 +0800
commit52594324b302f6e9da10ac01fe803196371bb2d9 (patch)
tree38dd36e0bf934b283dd80f808531a2ee862b174b /include/cru/ui/LayoutControl.hpp
parentdf4df679e157f974773dad7776b204e9d4f3009e (diff)
downloadcru-52594324b302f6e9da10ac01fe803196371bb2d9.tar.gz
cru-52594324b302f6e9da10ac01fe803196371bb2d9.tar.bz2
cru-52594324b302f6e9da10ac01fe803196371bb2d9.zip
...
Diffstat (limited to 'include/cru/ui/LayoutControl.hpp')
-rw-r--r--include/cru/ui/LayoutControl.hpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/include/cru/ui/LayoutControl.hpp b/include/cru/ui/LayoutControl.hpp
index 7997b37e..69d5cd0b 100644
--- a/include/cru/ui/LayoutControl.hpp
+++ b/include/cru/ui/LayoutControl.hpp
@@ -11,21 +11,9 @@ class LayoutControl : public Control {
LayoutControl(LayoutControl&& other) = delete;
LayoutControl& operator=(const LayoutControl& other) = delete;
LayoutControl& operator=(LayoutControl&& other) = delete;
- ~LayoutControl() override;
+ ~LayoutControl() override = default;
- const std::vector<Control*>& GetChildren() const override final {
- return children_;
- }
-
- void AddChild(Control* control, Index position);
-
- void RemoveChild(Index position);
-
- protected:
- virtual void OnAddChild(Control* child, Index position);
- virtual void OnRemoveChild(Control* child, Index position);
-
- private:
- std::vector<Control*> children_;
+ using Control::AddChild;
+ using Control::RemoveChild;
};
} // namespace cru::ui