MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getSelectedRow

Method getSelectedRow

src/Interface/TextList.cpp:606–616  ·  view source on GitHub ↗

* Returns the currently selected row if the text * list is selectable. * @return Selected row, -1 if none. */

Source from the content-addressed store, hash-verified

604 * @return Selected row, -1 if none.
605 */
606int 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.

Callers 15

onSelectProjectMethod · 0.80
lstProdClickMethod · 0.80
onSelectProjectMethod · 0.80
lstBasesClickMethod · 0.80
lstSoldiersClickMethod · 0.80
lstSoldiersMousePressMethod · 0.80
lstManufactureClickMethod · 0.80
lstFacilitiesClickMethod · 0.80
facilityBuiltMethod · 0.80
lstSoldiersClickMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected