Enum ux::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)
Stretch to cover the whole allocated space
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 the actor inside the allocation
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
impl RefUnwindSafe for ActorAlign
impl Send for ActorAlign
impl Sync for ActorAlign
impl Unpin for ActorAlign
impl UnwindSafe for ActorAlign
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src][+]
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,