[][src]Enum druid::widget::MainAxisAlignment

pub enum MainAxisAlignment {
    Start,
    Center,
    End,
    SpaceBetween,
    SpaceEvenly,
    SpaceAround,
}

Arrangement of children on the main axis.

If there is surplus space on the main axis after laying out children, this enum represents how children are laid out in this space.

Variants

Start

Top or leading.

Children are aligned with the top or leading edge, without padding.

Center

Children are centered, without padding.

End

Bottom or trailing.

Children are aligned with the bottom or trailing edge, without padding.

SpaceBetween

Extra space is divided evenly between each child.

SpaceEvenly

Extra space is divided evenly between each child, as well as at the ends.

SpaceAround

Space between each child, with less at the start and end.

This divides space such that each child is separated by n units, and the start and end have n/2 units of padding.

Trait Implementations

impl Clone for MainAxisAlignment[src]

impl Copy for MainAxisAlignment[src]

impl Data for MainAxisAlignment[src]

impl Debug for MainAxisAlignment[src]

impl PartialEq<MainAxisAlignment> for MainAxisAlignment[src]

impl StructuralPartialEq for MainAxisAlignment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AnyEq for T where
    T: PartialEq<T> + Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.