Skip to main content

Module collection_transition

Module collection_transition 

Expand description

The rows of a virtualized collection on their way after a structural change. Owners note only their shown rows: survivors move from where they stood, arrivals fade in, and (for an owner that paints them) the rows the change took away fade out where they stood. Once the change has run its course every row stands where it is laid out.

Structs§

RowMotion
A row on its way after a change the person made (motion::ListChange): moving from where it stood to its new place, or fading in where it arrived. Rows the change did not move have none.
RowMotions
The rows of a virtualized list or table on their way after a change the person just made (motion::ListChange): the owner notes where its shown rows stand before the change (Self::capture), and the next frame moves the survivors from there to where they are laid out now and fades arrivals in (Self::start). Only rows shown after the change move; nothing outside the viewport animates. A change nobody just asked for (a sync), a shortcut’s result and reduced motion land at once.