* Sets up an arrow button with the specified size and position. * @param shape Shape of the arrow. * @param width Width in pixels. * @param height Height in pixels. * @param x X position in pixels. * @param y Y position in pixels. */
| 33 | * @param y Y position in pixels. |
| 34 | */ |
| 35 | ArrowButton::ArrowButton(ArrowShape shape, int width, int height, int x, int y) : ImageButton(width, height, x, y), _shape(shape), _list(0) |
| 36 | { |
| 37 | _timer = new Timer(50); |
| 38 | _timer->onTimer((SurfaceHandler)&ArrowButton::scroll); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Deletes timers. |