* Changes the position of the surface in the X axis. * @param x X position in pixels. */
| 85 | * @param x X position in pixels. |
| 86 | */ |
| 87 | void TextList::setX(int x) |
| 88 | { |
| 89 | Surface::setX(x); |
| 90 | _up->setX(getX() + getWidth() + _scrollPos); |
| 91 | _down->setX(getX() + getWidth() + _scrollPos); |
| 92 | _scrollbar->setX(getX() + getWidth() + _scrollPos); |
| 93 | if (_selector != 0) |
| 94 | _selector->setX(getX()); |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Changes the position of the surface in the Y axis. |