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

Method prependChild

libs/JSystem/J2DGraph/J2DPane.cpp:221–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221bool J2DPane::prependChild(J2DPane* child)
222{
223 if (child == nullptr) {
224 return false;
225 }
226 J2DPane* oldParent = child->getParentPane();
227 bool prependResult = mTree.prependChild(&child->mTree);
228 if ((prependResult) && oldParent == nullptr) {
229 child->add(mBounds.i.x, mBounds.i.y);
230 child->calcMtx();
231 }
232 return prependResult;
233}
234
235bool J2DPane::insertChild(J2DPane* before, J2DPane* child)
236{

Callers

nothing calls this directly

Calls 3

getParentPaneMethod · 0.80
addMethod · 0.45
calcMtxMethod · 0.45

Tested by

no test coverage detected