pub struct LazyColumnSpec {
pub vertical_arrangement: LinearArrangement,
pub content_padding_top: f32,
pub content_padding_bottom: f32,
pub beyond_bounds_item_count: usize,
pub reverse_layout: bool,
}Expand description
Specification for LazyColumn layout behavior.
Fields§
§vertical_arrangement: LinearArrangementVertical arrangement for spacing between items.
content_padding_top: f32Content padding before the first item.
content_padding_bottom: f32Content padding after the last item.
beyond_bounds_item_count: usizeNumber of items to compose beyond the visible bounds. Higher values reduce jank during fast scrolling but use more memory.
reverse_layout: boolWhether to reverse the layout direction (bottom-to-top).
Implementations§
Source§impl LazyColumnSpec
impl LazyColumnSpec
pub fn new() -> Self
pub fn vertical_arrangement(self, arrangement: LinearArrangement) -> Self
pub fn content_padding(self, top: f32, bottom: f32) -> Self
Sourcepub fn content_padding_all(self, padding: f32) -> Self
pub fn content_padding_all(self, padding: f32) -> Self
Sets uniform content padding for top and bottom.
pub fn reverse_layout(self, reverse: bool) -> Self
Trait Implementations§
Source§impl Clone for LazyColumnSpec
impl Clone for LazyColumnSpec
Source§fn clone(&self) -> LazyColumnSpec
fn clone(&self) -> LazyColumnSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LazyColumnSpec
impl Debug for LazyColumnSpec
Source§impl Default for LazyColumnSpec
impl Default for LazyColumnSpec
Source§impl PartialEq for LazyColumnSpec
impl PartialEq for LazyColumnSpec
Source§fn eq(&self, other: &LazyColumnSpec) -> bool
fn eq(&self, other: &LazyColumnSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LazyColumnSpec
Auto Trait Implementations§
impl Freeze for LazyColumnSpec
impl RefUnwindSafe for LazyColumnSpec
impl Send for LazyColumnSpec
impl Sync for LazyColumnSpec
impl Unpin for LazyColumnSpec
impl UnsafeUnpin for LazyColumnSpec
impl UnwindSafe for LazyColumnSpec
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