[−][src]Enum druid::widget::MainAxisAlignment
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
Top or leading.
Children are aligned with the top or leading edge, without padding.
Children are centered, without padding.
Bottom or trailing.
Children are aligned with the bottom or trailing edge, without padding.
Extra space is divided evenly between each child.
Extra space is divided evenly between each child, as well as at the ends.
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]
fn clone(&self) -> MainAxisAlignment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MainAxisAlignment
[src]
impl Data for MainAxisAlignment
[src]
impl Debug for MainAxisAlignment
[src]
impl PartialEq<MainAxisAlignment> for MainAxisAlignment
[src]
fn eq(&self, other: &MainAxisAlignment) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for MainAxisAlignment
[src]
Auto Trait Implementations
impl RefUnwindSafe for MainAxisAlignment
impl Send for MainAxisAlignment
impl Sync for MainAxisAlignment
impl Unpin for MainAxisAlignment
impl UnwindSafe for MainAxisAlignment
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: PartialEq<T> + Any,
[src]
T: PartialEq<T> + Any,
fn equals(&self, other: &(dyn Any + 'static)) -> bool
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
fn round_into(self) -> U
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,