| 204 | } |
| 205 | |
| 206 | bool 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 | |
| 221 | bool J2DPane::prependChild(J2DPane* child) |
| 222 | { |
no test coverage detected