| 49 | } |
| 50 | |
| 51 | void UIComponent::AddChild(Ref<UIComponent>& item) { |
| 52 | if (!item->HasParentUI()) { |
| 53 | item->SetParentUI(shared_from_this()); |
| 54 | } |
| 55 | m_children.push_back(item); |
| 56 | } |
| 57 | |
| 58 | void UIComponent::AddChild(Ref<UIComponent>&& item) { |
| 59 | if (!item->HasParentUI()) { |
no test coverage detected