C4 Engine
C4 Engine API Documentation

ListWidget::GetPreviousSelectedListItem

Defined in:  C4Widgets.h
Returns the previous selected item in a list.
Prototype

Widget *GetPreviousSelectedListItem(const Widget *widget) const;

Parameters
widget A pointer to a selected item for which the previous selected item is returned.
Description
The GetPreviousSelectedListItem function returns a pointer to the selected list item that precedes the selected item specified by the widget parameter. If there is no previous selected item (i.e., the item specified by widget is the first selected item), then the return value is nullptr.
See Also

ListWidget::GetNextSelectedListItem

ListWidget::GetFirstSelectedListItem

ListWidget::GetLastSelectedListItem

ListWidget::GetSelectedListItem

ListWidget::GetSelectedListItemCount