#[non_exhaustive]pub enum ActorAlign {
Fill,
Start,
Center,
End,
}
Expand description
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)§
This enum is marked as 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§
Source§impl Clone for ActorAlign
impl Clone for ActorAlign
Source§fn clone(&self) -> ActorAlign
fn clone(&self) -> ActorAlign
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ActorAlign
impl Debug for ActorAlign
Source§impl Display for ActorAlign
impl Display for ActorAlign
Source§impl<'a> FromValue<'a> for ActorAlign
impl<'a> FromValue<'a> for ActorAlign
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for ActorAlign
impl<'a> FromValueOptional<'a> for ActorAlign
Source§impl Hash for ActorAlign
impl Hash for ActorAlign
Source§impl Ord for ActorAlign
impl Ord for ActorAlign
Source§fn cmp(&self, other: &ActorAlign) -> Ordering
fn cmp(&self, other: &ActorAlign) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ActorAlign
impl PartialEq for ActorAlign
Source§impl PartialOrd for ActorAlign
impl PartialOrd for ActorAlign
Source§impl SetValue for ActorAlign
impl SetValue for ActorAlign
Source§impl StaticType for ActorAlign
impl StaticType for ActorAlign
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for ActorAlign
impl Eq for ActorAlign
impl StructuralPartialEq for ActorAlign
Auto Trait Implementations§
impl Freeze for ActorAlign
impl RefUnwindSafe for ActorAlign
impl Send for ActorAlign
impl Sync for ActorAlign
impl Unpin for ActorAlign
impl UnwindSafe for ActorAlign
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.