diff options
author | crupest <crupest@outlook.com> | 2022-02-09 23:53:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-09 23:53:18 +0800 |
commit | b8863c403a44c1c7ac35f1a1da92bbf3c8858552 (patch) | |
tree | 7e38f029f0657e6c1210a53f1cba331cdb8feab6 /src/ui/controls/LayoutControl.cpp | |
parent | d18b5453d7ffd19667ee8ac125b34ab5328f0dc3 (diff) | |
download | cru-b8863c403a44c1c7ac35f1a1da92bbf3c8858552.tar.gz cru-b8863c403a44c1c7ac35f1a1da92bbf3c8858552.tar.bz2 cru-b8863c403a44c1c7ac35f1a1da92bbf3c8858552.zip |
...
Diffstat (limited to 'src/ui/controls/LayoutControl.cpp')
-rw-r--r-- | src/ui/controls/LayoutControl.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
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 |