| 412 | } |
| 413 | |
| 414 | JGeometry::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 | |
| 425 | void J2DPane::rotate(f32 anchorX, f32 anchorY, J2DRotateAxis axis, f32 angle) |
| 426 | { |