From b8863c403a44c1c7ac35f1a1da92bbf3c8858552 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 9 Feb 2022 23:53:18 +0800 Subject: ... --- src/ui/controls/LayoutControl.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/ui/controls/LayoutControl.cpp (limited to 'src/ui/controls/LayoutControl.cpp') diff --git a/src/ui/controls/LayoutControl.cpp b/src/ui/controls/LayoutControl.cpp deleted file mode 100644 index 5c67bc86..00000000 --- a/src/ui/controls/LayoutControl.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "cru/ui/controls/LayoutControl.h" - -#include "cru/ui/render/RenderObject.h" - -namespace cru::ui::controls { -void LayoutControl::ClearChildren() { - while (GetChildren().size() > 0) { - RemoveChild(0); - } -} - -void LayoutControl::OnAddChild(Control* child, Index position) { - if (container_render_object_ != nullptr) { - container_render_object_->AddChild(child->GetRenderObject(), position); - } -} - -void LayoutControl::OnRemoveChild(Control* child, Index position) { - CRU_UNUSED(child) - if (container_render_object_ != nullptr) { - container_render_object_->RemoveChild(position); - } -} -} // namespace cru::ui::controls -- cgit v1.2.3