From a410e2048db6f5ef6fb50e401a59b4b98b979050 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 4 Apr 2019 17:12:25 +0800 Subject: ... --- src/ui/content_control.hpp | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/ui/content_control.hpp (limited to 'src/ui/content_control.hpp') diff --git a/src/ui/content_control.hpp b/src/ui/content_control.hpp deleted file mode 100644 index 88e7f60f..00000000 --- a/src/ui/content_control.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once -#include "pre.hpp" - -#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