From d86a71f79afe0e4dac768f61d6bff690567aca5b Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 24 May 2020 01:40:02 +0800 Subject: ... --- include/cru/ui/content_control.hpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 include/cru/ui/content_control.hpp (limited to 'include/cru/ui/content_control.hpp') diff --git a/include/cru/ui/content_control.hpp b/include/cru/ui/content_control.hpp deleted file mode 100644 index f88ec157..00000000 --- a/include/cru/ui/content_control.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include "control.hpp" - -namespace cru::ui { -class ContentControl : public Control { - protected: - ContentControl(); - - public: - ContentControl(const ContentControl& other) = delete; - ContentControl(ContentControl&& other) = delete; - ContentControl& operator=(const ContentControl& other) = delete; - ContentControl& operator=(ContentControl&& other) = delete; - ~ContentControl() override; - - const std::vector& GetChildren() const override final { - return child_vector_; - } - Control* GetChild() const { return child_; } - void SetChild(Control* child); - - protected: - virtual void OnChildChanged(Control* old_child, Control* new_child); - - private: - std::vector child_vector_; - Control*& child_; -}; -} // namespace cru::ui -- cgit v1.2.3