| 143 | } |
| 144 | |
| 145 | void BaseWidget::DestroyEntity(Entity* entity) |
| 146 | { |
| 147 | auto it = std::find(m_entities.begin(), m_entities.end(), entity); |
| 148 | NazaraAssert(it != m_entities.end(), "Entity does not belong to this widget"); |
| 149 | |
| 150 | m_entities.erase(it); |
| 151 | } |
| 152 | |
| 153 | void BaseWidget::Layout() |
| 154 | { |