MCPcopy Create free account
hub / github.com/MyGUI/mygui / addChild

Method addChild

UnitTests/TestApp/Data.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void Data::addChild(Data* _child)
69 {
70 MYGUI_ASSERT(_child != nullptr, "Child is nullptr");
71 MYGUI_ASSERT(_child->getParent() == nullptr, "Child already attached");
72
73 mChilds.push_back(_child);
74 _child->mParent = this;
75 }
76
77 void Data::removeChild(Data* _child)
78 {

Callers 2

doActionMethod · 0.45
undoActionMethod · 0.45

Calls 2

getParentMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected