Enum clutter::ActorAlign[][src]

#[non_exhaustive]
pub enum ActorAlign {
    Fill,
    Start,
    Center,
    End,
    // some variants omitted
}

Controls how a Actor should align itself inside the extra space assigned to it during the allocation.

Alignment only matters if the allocated space given to an actor is bigger than its natural size; for example, when the Actor:x-expand or the Actor:y-expand properties of Actor are set to true.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fill

Stretch to cover the whole allocated space

Start

Snap to left or top side, leaving space to the right or bottom. For horizontal layouts, in right-to-left locales this should be reversed.

Center

Center the actor inside the allocation

End

Snap to right or bottom side, leaving space to the left or top. For horizontal layouts, in right-to-left locales this should be reversed.

Trait Implementations

impl Clone for ActorAlign[src]

impl Copy for ActorAlign[src]

impl Debug for ActorAlign[src]

impl Display for ActorAlign[src]

impl Eq for ActorAlign[src]

impl<'a> FromValue<'a> for ActorAlign[src]

impl<'a> FromValueOptional<'a> for ActorAlign[src]

impl Hash for ActorAlign[src]

impl Ord for ActorAlign[src]

impl PartialEq<ActorAlign> for ActorAlign[src]

impl PartialOrd<ActorAlign> for ActorAlign[src]

impl SetValue for ActorAlign[src]

impl StaticType for ActorAlign[src]

impl StructuralEq for ActorAlign[src]

impl StructuralPartialEq for ActorAlign[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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.