DVUI

SingleSelect

Implement single selection deselects the previously selected item and selects the new item.

  • must persist accross frames
  • call processEvents after the "selectables" have been created. Note: May be inaccurate if multiple selection events occur in a single frame. Implement additonal checks or process the raw events if you need to ensure that only a single item is selected. (required for very low frame rate environments)

Fields

#
id_to_select:?usize
?usize
id_to_unselect:?usize
?usize
selection_changed:bool
bool

Functions

#
selectionChanged

Returns true if any selections changed this frame.