pub struct RowRun {
pub viewport: f32,
pub anchor: usize,
pub anchor_top: f32,
pub gap: f32,
pub density: f32,
}Expand description
Everything about a scaling list that is the same for all of its rows.
Held together rather than passed one by one because place_rows_with
walks a run and every one of these is a property of the run, not of a row.
Fields§
§viewport: f32The list’s full height, which is what the ramp is stated against.
anchor: usizeWhich row the walk starts from — ScalingLazyListState.centerItemIndex.
anchor_top: f32Where the anchored row’s own box starts. This is the one position the unscaled stack and the walk always agree on: the anchored row is never scaled, so its cursor and its slot are the same number.
gap: f32Arrangement.spacedBy, between every pair of drawn boxes.
density: f32Device pixels per unit; 0.0 works in continuous coordinates.
Trait Implementations§
impl Copy for RowRun
impl StructuralPartialEq for RowRun
Auto Trait Implementations§
impl Freeze for RowRun
impl RefUnwindSafe for RowRun
impl Send for RowRun
impl Sync for RowRun
impl Unpin for RowRun
impl UnsafeUnpin for RowRun
impl UnwindSafe for RowRun
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more