* Changes the position of the surface in the Y axis. * @param y Y position in pixels. */
| 99 | * @param y Y position in pixels. |
| 100 | */ |
| 101 | void TextList::setY(int y) |
| 102 | { |
| 103 | Surface::setY(y); |
| 104 | _up->setY(getY()); |
| 105 | _down->setY(getY() + getHeight() - 14); |
| 106 | _scrollbar->setY(_up->getY() + _up->getHeight()); |
| 107 | if (_selector != 0) |
| 108 | _selector->setY(getY()); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Gets the arrowsLeftEdge. |