From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- include/cru/ui/controls/ContentControl.hpp | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 include/cru/ui/controls/ContentControl.hpp (limited to 'include/cru/ui/controls/ContentControl.hpp') diff --git a/include/cru/ui/controls/ContentControl.hpp b/include/cru/ui/controls/ContentControl.hpp deleted file mode 100644 index 7b40de64..00000000 --- a/include/cru/ui/controls/ContentControl.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once -#include "Control.hpp" - -#include "cru/ui/render/RenderObject.hpp" - -namespace cru::ui::controls { -class CRU_UI_API ContentControl : public Control { - protected: - ContentControl() = default; - - public: - ContentControl(const ContentControl& other) = delete; - ContentControl(ContentControl&& other) = delete; - ContentControl& operator=(const ContentControl& other) = delete; - ContentControl& operator=(ContentControl&& other) = delete; - ~ContentControl() override = default; - - Control* GetChild() const; - void SetChild(Control* child); - - protected: - virtual void OnChildChanged(Control* old_child, Control* new_child); - - render::RenderObject* GetContainerRenderObject() const { - return container_render_object_; - } - void SetContainerRenderObject(render::RenderObject* ro) { - container_render_object_ = ro; - } - - private: - using Control::AddChild; - using Control::RemoveChild; - - private: - render::RenderObject* container_render_object_ = nullptr; -}; -} // namespace cru::ui::controls -- cgit v1.2.3