pub struct ListReading {
pub geometry: Option<ScrollGeometry>,
pub scroll_y: f32,
pub viewport: Size,
pub pad_t: f32,
pub pad_x: f32,
pub overscan: usize,
}Expand description
What a variable-height list reads before it slices: the container’s
last layout, where its scroll is going, the window, and the padding
its rows sit inside. list takes it from the frame
(Self::of); a binding builds it from the same readings its view
already has (scrollGeometry, scrollOffset, the viewport), so the
arithmetic after it is this module’s in every language.
Fields§
§geometry: Option<ScrollGeometry>scroll_geometry of the container, None before a layout has
resolved it — the first frame.
scroll_y: f32scroll_offset(key).y: the retained offset, which is where an
eased leg is going when it differs from geometry.offset.
viewport: SizeThe window, logical px: what the first frame slices by.
pad_t: f32The container’s top padding and its horizontal padding together.
pad_x: f32§overscan: usizeRows built past each end of the window; 2 unless a view says.