pub enum LinearArrangement {
Start,
End,
Center,
SpaceBetween,
SpaceAround,
SpaceEvenly,
SpacedBy(f32),
}Expand description
Arrangement strategy matching Jetpack Compose’s linear arrangements.
Variants§
Start
Place children consecutively starting from the leading edge.
End
Place children so the last child touches the trailing edge.
Center
Place children so they are centered as a block.
SpaceBetween
Distribute the remaining space evenly between children.
SpaceAround
Distribute the remaining space before, after, and between children.
SpaceEvenly
Distribute the remaining space before the first child, between children, and after the last child.
SpacedBy(f32)
Insert a fixed amount of space between children.
Implementations§
Source§impl LinearArrangement
impl LinearArrangement
Sourcepub fn spaced_by(spacing: f32) -> LinearArrangement
pub fn spaced_by(spacing: f32) -> LinearArrangement
Creates an arrangement that inserts a fixed spacing between children.
Trait Implementations§
Source§impl Arrangement for LinearArrangement
impl Arrangement for LinearArrangement
Source§impl Clone for LinearArrangement
impl Clone for LinearArrangement
Source§fn clone(&self) -> LinearArrangement
fn clone(&self) -> LinearArrangement
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 LinearArrangement
impl Debug for LinearArrangement
Source§impl PartialEq for LinearArrangement
impl PartialEq for LinearArrangement
impl Copy for LinearArrangement
impl StructuralPartialEq for LinearArrangement
Auto Trait Implementations§
impl Freeze for LinearArrangement
impl RefUnwindSafe for LinearArrangement
impl Send for LinearArrangement
impl Sync for LinearArrangement
impl Unpin for LinearArrangement
impl UnwindSafe for LinearArrangement
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