[][src]Enum druid::widget::CrossAxisAlignment

pub enum CrossAxisAlignment {
    Start,
    Center,
    End,
}

The alignment of the widgets on the container's cross (or minor) axis.

If a widget is smaller than the container on the minor axis, this determines where it is positioned.

Variants

Start

Top or leading.

In a vertical container, widgets are top aligned. In a horiziontal container, their leading edges are aligned.

Center

Widgets are centered in the container.

End

Bottom or trailing.

In a vertical container, widgets are bottom aligned. In a horiziontal container, their trailing edges are aligned.

Trait Implementations

impl Clone for CrossAxisAlignment[src]

impl Copy for CrossAxisAlignment[src]

impl Data for CrossAxisAlignment[src]

impl Debug for CrossAxisAlignment[src]

impl PartialEq<CrossAxisAlignment> for CrossAxisAlignment[src]

impl StructuralPartialEq for CrossAxisAlignment[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> 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.