* Scrolls the associated list to top or bottom. * @param action Pointer to an action. * @param state State that the action handlers belong to. */
| 364 | * @param state State that the action handlers belong to. |
| 365 | */ |
| 366 | void ArrowButton::mouseClick(Action *action, State *state) |
| 367 | { |
| 368 | ImageButton::mouseClick(action, state); |
| 369 | if (_list != 0 && SDL_BUTTON_RIGHT == action->getDetails()->button.button) { |
| 370 | if (_shape == ARROW_BIG_UP) _list->scrollUp(true); |
| 371 | else if (_shape == ARROW_BIG_DOWN) _list->scrollDown(true); |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | } |
nothing calls this directly
no test coverage detected