From b8863c403a44c1c7ac35f1a1da92bbf3c8858552 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 9 Feb 2022 23:53:18 +0800 Subject: ... --- src/ui/controls/StackLayout.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'src/ui/controls/StackLayout.cpp') diff --git a/src/ui/controls/StackLayout.cpp b/src/ui/controls/StackLayout.cpp index 7e45a555..55964bcd 100644 --- a/src/ui/controls/StackLayout.cpp +++ b/src/ui/controls/StackLayout.cpp @@ -1,29 +1,9 @@ #include "cru/ui/controls/StackLayout.h" -#include - -#include "cru/ui/render/StackLayoutRenderObject.h" namespace cru::ui::controls { using render::StackLayoutRenderObject; -StackLayout::StackLayout() { - render_object_ = std::make_unique(); - render_object_->SetAttachedControl(this); - SetContainerRenderObject(render_object_.get()); -} +StackLayout::StackLayout() = default; StackLayout::~StackLayout() = default; - -render::RenderObject* StackLayout::GetRenderObject() const { - return render_object_.get(); -} - -const StackChildLayoutData& StackLayout::GetChildLayoutData(Index position) { - return render_object_->GetChildLayoutData(position); -} - -void StackLayout::SetChildLayoutData(Index position, - StackChildLayoutData data) { - render_object_->SetChildLayoutData(position, std::move(data)); -} } // namespace cru::ui::controls -- cgit v1.2.3