* Returns the currently selected row if the text * list is selectable. * @return Selected row, -1 if none. */
| 604 | * @return Selected row, -1 if none. |
| 605 | */ |
| 606 | int TextList::getSelectedRow() const |
| 607 | { |
| 608 | if (_rows.empty() || _selRow >= _rows.size()) |
| 609 | { |
| 610 | return -1; |
| 611 | } |
| 612 | else |
| 613 | { |
| 614 | return _rows[_selRow]; |
| 615 | } |
| 616 | } |
| 617 | |
| 618 | /** |
| 619 | * Changes the surface used to draw the background of the selector. |
no test coverage detected