Skip to content

AListView#

Displays a list model of strings.

Header:#include <AUI/View/AListView.h>
CMake:aui_link(my_target PUBLIC aui::views)

Public Types#

SelectAction#


enum class AListView::SelectAction

Selection action for updateSelectionOnItem.

Constant Description
SelectAction::CLEAR_SELECTION_AND_SET Clears old selection and selects the specified index. Used by selectItem.
SelectAction::SET Selects the specified index. In single selection mode, acts like CLEAR_SELECTION_AND_SET.
SelectAction::UNSET Deselects the specified index.
SelectAction::TOGGLE Selects or deselects the specified index depending on it's current state.

Public Methods#

selectItem#


void AListView::selectItem(size_t i)

Acts on the item at index i as if the user were left-clicked without keyboard modifiers on it.