* Blits the slider contents * @param surface Pointer to surface to blit onto. */
| 244 | * @param surface Pointer to surface to blit onto. |
| 245 | */ |
| 246 | void Slider::blit(Surface *surface) |
| 247 | { |
| 248 | Surface::blit(surface); |
| 249 | if (_visible && !_hidden) |
| 250 | { |
| 251 | _txtMinus->blit(surface); |
| 252 | _txtPlus->blit(surface); |
| 253 | _frame->blit(surface); |
| 254 | _button->blit(surface); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * The slider only moves while the button is pressed. |