Skip to main content

Module virtual_list

Module virtual_list 

Expand description

Sparse, variable-height list with retained row delegates.

The model exposes stable keys and random access without requiring all rows to be resident. Only the viewport window owns widget instances; those instances survive reorder while their key remains visible.

Structs§

DuplicateListKey
RowSelection
A row’s selection with its neighbours’, for a delegate that paints its own selection: a run of selected rows is one lift (crate::chrome::RowJoin), and a separator hides beside a selected row.
VecListModel
Convenient fully-resident model. Database and paged sources generally implement ListModel directly instead.
VirtualList

Enums§

ListModelChange
One already-applied change to a ListModel. Structural variants retain mounted delegates by stable key; Self::RowsChanged rebuilds only the named rows.
ListRowState
State of one stable row in a paged or asynchronously populated list.

Traits§

ListModel
Random-access collection contract for VirtualList. Keys must be unique and stable while an item represents the same logical entity.