* Changes the position of the surface in the Y axis. * @param y Y position in pixels. */
| 91 | * @param y Y position in pixels. |
| 92 | */ |
| 93 | void Slider::setY(int y) |
| 94 | { |
| 95 | Surface::setY(y); |
| 96 | _txtMinus->setY(y); |
| 97 | _txtPlus->setY(y); |
| 98 | _frame->setY(getY() + (getHeight() - _thickness) / 2); |
| 99 | _button->setY(getY()); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Changes the various resources needed for text rendering. |