blob: 5954853ed36374e7ad4b119e5eac89477e64baad (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 | #include "cru/ui/controls/LayoutControl.hpp"
#include "cru/ui/render/RenderObject.hpp"
namespace cru::ui::controls {
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
 |