pub struct LazyListLayoutInfo {
pub visible_items_info: Vec<LazyListItemInfo>,
pub total_items_count: usize,
pub viewport_size: f32,
pub viewport_start_offset: f32,
pub viewport_end_offset: f32,
pub before_content_padding: f32,
pub after_content_padding: f32,
}Expand description
Information about the currently visible items in a lazy list.
Fields§
§visible_items_info: Vec<LazyListItemInfo>Information about each visible item.
total_items_count: usizeTotal number of items in the list.
viewport_size: f32Size of the viewport in the main axis.
viewport_start_offset: f32Start offset of the viewport (content padding before).
viewport_end_offset: f32End offset of the viewport (content padding after).
before_content_padding: f32Content padding before the first item.
after_content_padding: f32Content padding after the last item.
Trait Implementations§
Source§impl Clone for LazyListLayoutInfo
impl Clone for LazyListLayoutInfo
Source§fn clone(&self) -> LazyListLayoutInfo
fn clone(&self) -> LazyListLayoutInfo
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 LazyListLayoutInfo
impl Debug for LazyListLayoutInfo
Source§impl Default for LazyListLayoutInfo
impl Default for LazyListLayoutInfo
Source§fn default() -> LazyListLayoutInfo
fn default() -> LazyListLayoutInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LazyListLayoutInfo
impl RefUnwindSafe for LazyListLayoutInfo
impl Send for LazyListLayoutInfo
impl Sync for LazyListLayoutInfo
impl Unpin for LazyListLayoutInfo
impl UnwindSafe for LazyListLayoutInfo
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