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

Method insertChild

libs/JSystem/J2DGraph/J2DPane.cpp:235–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235bool J2DPane::insertChild(J2DPane* before, J2DPane* child)
236{
237 // UNUSED FUNCTION
238 // NOT VERIFIED
239 if (before == nullptr || child == nullptr) {
240 return false;
241 }
242 J2DPane* oldParent = child->getParentPane();
243 bool removeResult = mTree.insertChild(&before->mTree, &child->mTree);
244 if ((removeResult) && oldParent == nullptr) {
245 child->add(mBounds.i.x, mBounds.i.y);
246 child->calcMtx();
247 }
248 return removeResult;
249}
250
251bool J2DPane::removeChild(J2DPane* child)
252{

Callers

nothing calls this directly

Calls 3

getParentPaneMethod · 0.80
addMethod · 0.45
calcMtxMethod · 0.45

Tested by

no test coverage detected