| 72 | } |
| 73 | |
| 74 | void UIComponent::AddChildren(std::vector<Ref<UIComponent>>& items) { |
| 75 | std::for_each(std::begin(items), std::end(items), [this](Ref<UIComponent>& component) { this->AddChild(component); }); |
| 76 | } |
| 77 | |
| 78 | void UIComponent::AddChildren(std::vector<Ref<UIComponent>>&& items) { |
| 79 | std::for_each(std::begin(items), std::end(items), [this](Ref<UIComponent>& component) { this->AddChild(std::move(component)); }); |