* Changes the position of the surface in the X axis. * @param x X position in pixels. */
| 75 | * @param x X position in pixels. |
| 76 | */ |
| 77 | void Slider::setX(int x) |
| 78 | { |
| 79 | Surface::setX(x); |
| 80 | _txtMinus->setX(x - 1); |
| 81 | _txtPlus->setX(x + getWidth() - _textness); |
| 82 | _frame->setX(getX() + _textness); |
| 83 | |
| 84 | _minX = _frame->getX(); |
| 85 | _maxX = _frame->getX() + _frame->getWidth() - _button->getWidth(); |
| 86 | setValue(_pos); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Changes the position of the surface in the Y axis. |
no test coverage detected