Children stuff.
| 88 | |
| 89 | //Children stuff. |
| 90 | void GuiComponent::addChild(GuiComponent* cmp) |
| 91 | { |
| 92 | mChildren.push_back(cmp); |
| 93 | |
| 94 | if(cmp->getParent()) |
| 95 | cmp->getParent()->removeChild(cmp); |
| 96 | |
| 97 | cmp->setParent(this); |
| 98 | } |
| 99 | |
| 100 | void GuiComponent::removeChild(GuiComponent* cmp) |
| 101 | { |
nothing calls this directly
no test coverage detected