MCPcopy Create free account
hub / github.com/doldecomp/mkdd / appendChild

Method appendChild

libs/JSystem/J2DGraph/J2DPane.cpp:206–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206bool J2DPane::appendChild(J2DPane* child)
207{
208 if (child == nullptr) {
209 return false;
210 }
211
212 J2DPane* oldParent = child->getParentPane();
213 bool appendResult = mTree.appendChild(&child->mTree);
214 if ((appendResult) && oldParent == nullptr) {
215 child->add(mBounds.i.x, mBounds.i.y);
216 child->calcMtx();
217 }
218 return appendResult;
219}
220
221bool J2DPane::prependChild(J2DPane* child)
222{

Callers 5

NameEntryDrumMethod · 0.45
initializeMethod · 0.45
makePaneStreamMethod · 0.45
makePaneExStreamMethod · 0.45
JKRHeapMethod · 0.45

Calls 3

getParentPaneMethod · 0.80
addMethod · 0.45
calcMtxMethod · 0.45

Tested by

no test coverage detected