MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / addChild

Method addChild

src/GuiComponent.cpp:90–98  ·  view source on GitHub ↗

Children stuff.

Source from the content-addressed store, hash-verified

88
89//Children stuff.
90void 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
100void GuiComponent::removeChild(GuiComponent* cmp)
101{

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.80
getParentMethod · 0.80
removeChildMethod · 0.80
setParentMethod · 0.80

Tested by

no test coverage detected