[−][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]
pub fn clone(&self) -> MainAxisAlignment
[src]
pub 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]
pub fn eq(&self, other: &MainAxisAlignment) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for MainAxisAlignment
[src]
Auto Trait Implementations
impl RefUnwindSafe for MainAxisAlignment
[src]
impl Send for MainAxisAlignment
[src]
impl Sync for MainAxisAlignment
[src]
impl Unpin for MainAxisAlignment
[src]
impl UnwindSafe for MainAxisAlignment
[src]
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,
pub fn equals(&self, other: &(dyn Any + 'static)) -> bool
[src]
pub 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,
pub 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
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,