| 42 | int right() { return x + width; } |
| 43 | int top() { return y; } |
| 44 | int bottom() { return y + height; } |
| 45 | |
| 46 | int left(int newLeft) { width += x - newLeft; x = newLeft; return x; } |
| 47 | int right(int newRight) { width += newRight - (x + width); return x + width; } |