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

Method getBounds

libs/JSystem/J2DGraph/J2DPane.cpp:414–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414JGeometry::TBox2f* J2DPane::getBounds()
415{
416 static_mBounds = mBounds;
417 static_mBounds.addPos(mOffset.x, mOffset.y);
418 J2DPane* parent = getParentPane();
419 if (parent != nullptr) {
420 static_mBounds.addPos(-parent->mBounds.i.x, -parent->mBounds.i.y);
421 }
422 return &static_mBounds;
423}
424
425void J2DPane::rotate(f32 anchorX, f32 anchorY, J2DRotateAxis axis, f32 angle)
426{

Callers 6

calcMethod · 0.45
drawMainMethod · 0.45
initMethod · 0.45
drawMainMethod · 0.45
drawMainMethod · 0.45
drawMainMethod · 0.45

Calls 1

addPosMethod · 0.80

Tested by

no test coverage detected