From d86a71f79afe0e4dac768f61d6bff690567aca5b Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 24 May 2020 01:40:02 +0800 Subject: ... --- include/cru/ui/layout_control.hpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 include/cru/ui/layout_control.hpp (limited to 'include/cru/ui/layout_control.hpp') diff --git a/include/cru/ui/layout_control.hpp b/include/cru/ui/layout_control.hpp deleted file mode 100644 index e1856403..00000000 --- a/include/cru/ui/layout_control.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once -#include "control.hpp" - -namespace cru::ui { -class LayoutControl : public Control { - protected: - LayoutControl() = default; - - public: - LayoutControl(const LayoutControl& other) = delete; - LayoutControl(LayoutControl&& other) = delete; - LayoutControl& operator=(const LayoutControl& other) = delete; - LayoutControl& operator=(LayoutControl&& other) = delete; - ~LayoutControl() override; - - const std::vector& 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 children_; -}; -} // namespace cru::ui -- cgit v1.2.3