pub struct LazyListMeasureConfig {
pub is_vertical: bool,
pub reverse_layout: bool,
pub before_content_padding: f32,
pub after_content_padding: f32,
pub spacing: f32,
pub beyond_bounds_item_count: usize,
pub vertical_arrangement: Option<LinearArrangement>,
pub horizontal_arrangement: Option<LinearArrangement>,
}Expand description
Configuration for lazy list measurement.
Fields§
§is_vertical: boolWhether the list is vertical (true) or horizontal (false).
reverse_layout: boolWhether layout is reversed (items laid out from bottom/right to top/left).
The measurement logic operates in a “start-to-end” coordinate system. This flag is used during placement to reverse the coordinates.
before_content_padding: f32Content padding before the first item.
after_content_padding: f32Content padding after the last item.
spacing: f32Spacing between items.
beyond_bounds_item_count: usizeNumber of items to keep composed beyond visible bounds. Default is 2 items before and after.
vertical_arrangement: Option<LinearArrangement>Vertical arrangement for distributing items.
Used when is_vertical is true.
horizontal_arrangement: Option<LinearArrangement>Horizontal arrangement for distributing items.
Used when is_vertical is false.
Trait Implementations§
Source§impl Clone for LazyListMeasureConfig
impl Clone for LazyListMeasureConfig
Source§fn clone(&self) -> LazyListMeasureConfig
fn clone(&self) -> LazyListMeasureConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LazyListMeasureConfig
impl Debug for LazyListMeasureConfig
Auto Trait Implementations§
impl Freeze for LazyListMeasureConfig
impl RefUnwindSafe for LazyListMeasureConfig
impl Send for LazyListMeasureConfig
impl Sync for LazyListMeasureConfig
impl Unpin for LazyListMeasureConfig
impl UnwindSafe for LazyListMeasureConfig
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