* Sets a function to be called every time the left arrows are mouse pressed. * @param handler Action handler. */
| 686 | * @param handler Action handler. |
| 687 | */ |
| 688 | void TextList::onLeftArrowPress(ActionHandler handler) |
| 689 | { |
| 690 | _leftPress = handler; |
| 691 | for (std::vector<ArrowButton*>::iterator i = _arrowLeft.begin(); i < _arrowLeft.end(); ++i) |
| 692 | { |
| 693 | (*i)->onMousePress(handler); |
| 694 | } |
| 695 | } |
| 696 | |
| 697 | /** |
| 698 | * Sets a function to be called every time the left arrows are mouse released. |
no test coverage detected