ListWidget::GetPreviousSelectedListItem
Defined in:
Returns the previous selected item in a list.
C4Widgets.h
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