pub struct LazyRowSpec {
pub horizontal_arrangement: LinearArrangement,
pub content_padding_start: f32,
pub content_padding_end: f32,
pub beyond_bounds_item_count: usize,
pub reverse_layout: bool,
}Expand description
Specification for LazyRow layout behavior.
Fields§
§horizontal_arrangement: LinearArrangementHorizontal arrangement for spacing between items.
content_padding_start: f32Content padding before the first item.
content_padding_end: f32Content padding after the last item.
beyond_bounds_item_count: usizeNumber of items to compose beyond the visible bounds.
reverse_layout: boolWhether to reverse the layout direction (end-to-start).
Implementations§
Source§impl LazyRowSpec
impl LazyRowSpec
pub fn new() -> Self
pub fn horizontal_arrangement(self, arrangement: LinearArrangement) -> Self
pub fn content_padding(self, start: f32, end: 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 start and end.
pub fn reverse_layout(self, reverse: bool) -> Self
Trait Implementations§
Source§impl Clone for LazyRowSpec
impl Clone for LazyRowSpec
Source§fn clone(&self) -> LazyRowSpec
fn clone(&self) -> LazyRowSpec
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 LazyRowSpec
impl Debug for LazyRowSpec
Source§impl Default for LazyRowSpec
impl Default for LazyRowSpec
Source§impl PartialEq for LazyRowSpec
impl PartialEq for LazyRowSpec
Source§fn eq(&self, other: &LazyRowSpec) -> bool
fn eq(&self, other: &LazyRowSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LazyRowSpec
Auto Trait Implementations§
impl Freeze for LazyRowSpec
impl RefUnwindSafe for LazyRowSpec
impl Send for LazyRowSpec
impl Sync for LazyRowSpec
impl Unpin for LazyRowSpec
impl UnsafeUnpin for LazyRowSpec
impl UnwindSafe for LazyRowSpec
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