pub enum WrapAlignment {
Start,
End,
Center,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
How RenderWrap should align objects.
Used both to align children within a run in the main axis as well as to align the runs themselves in the cross axis.
Variants§
Start
Place the objects as close to the start of the axis as possible.
If this value is used in a horizontal direction, a TextDirection must be available
to determine if the start is the left or the right.
If this value is used in a vertical direction, a VerticalDirection must be available
to determine if the start is the top or the bottom.
End
Place the objects as close to the end of the axis as possible.
If this value is used in a horizontal direction, a TextDirection must be available
to determine if the end is the left or the right.
If this value is used in a vertical direction, a VerticalDirection must be available
to determine if the end is the top or the bottom.
Center
Place the objects as close to the middle of the axis as possible.
SpaceBetween
Place the free space evenly between the objects.
SpaceAround
Place the free space evenly between the objects as well as half of that space before and after the first and last objects.
SpaceEvenly
Place the free space evenly between the objects as well as before and after the first and last objects.
Trait Implementations§
Source§impl Clone for WrapAlignment
impl Clone for WrapAlignment
impl Copy for WrapAlignment
Source§impl Debug for WrapAlignment
impl Debug for WrapAlignment
Source§impl Default for WrapAlignment
impl Default for WrapAlignment
impl Eq for WrapAlignment
Source§impl Hash for WrapAlignment
impl Hash for WrapAlignment
Source§impl PartialEq for WrapAlignment
impl PartialEq for WrapAlignment
impl StructuralPartialEq for WrapAlignment
Auto Trait Implementations§
impl Freeze for WrapAlignment
impl RefUnwindSafe for WrapAlignment
impl Send for WrapAlignment
impl Sync for WrapAlignment
impl Unpin for WrapAlignment
impl UnsafeUnpin for WrapAlignment
impl UnwindSafe for WrapAlignment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.