* Sets up a scrollbar with the specified size and position. * @param width Width in pixels. * @param height Height in pixels. * @param x X position in pixels. * @param y Y position in pixels. */
| 34 | * @param y Y position in pixels. |
| 35 | */ |
| 36 | ScrollBar::ScrollBar(int width, int height, int x, int y) : InteractiveSurface(width, height, x, y), _list(0), _color(0), _pressed(false), _contrast(false), _offset(0), _bg(0) |
| 37 | { |
| 38 | _track = new Surface(width-2, height, x+1, y); |
| 39 | _thumb = new Surface(width, height, x, y); |
| 40 | _thumbRect.x = 0; |
| 41 | _thumbRect.y = 0; |
| 42 | _thumbRect.w = 0; |
| 43 | _thumbRect.h = 0; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Deletes contents. |
nothing calls this directly
no outgoing calls
no test coverage detected