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)
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.
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 Clone for ActorAlign
[src]pub fn clone(&self) -> ActorAlign
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ActorAlign
[src]
impl Copy for ActorAlign
[src]impl Eq for ActorAlign
[src]
impl Eq for ActorAlign
[src]impl<'a> FromValue<'a> for ActorAlign
[src]
impl<'a> FromValue<'a> for ActorAlign
[src]pub unsafe fn from_value(value: &Value) -> ActorAlign
[src]
impl<'a> FromValueOptional<'a> for ActorAlign
[src]
impl<'a> FromValueOptional<'a> for ActorAlign
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<ActorAlign>
[src]
impl Hash for ActorAlign
[src]
impl Hash for ActorAlign
[src]impl Ord for ActorAlign
[src]
impl Ord for ActorAlign
[src]impl PartialEq<ActorAlign> for ActorAlign
[src]
impl PartialEq<ActorAlign> for ActorAlign
[src]pub fn eq(&self, other: &ActorAlign) -> bool
[src]
pub fn ne(&self, other: &ActorAlign) -> bool
[src]
impl PartialOrd<ActorAlign> for ActorAlign
[src]
impl PartialOrd<ActorAlign> for ActorAlign
[src]pub fn partial_cmp(&self, other: &ActorAlign) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl SetValue for ActorAlign
[src]
impl SetValue for ActorAlign
[src]pub unsafe fn set_value(value: &mut Value, this: &ActorAlign)
[src]
impl StaticType for ActorAlign
[src]
impl StaticType for ActorAlign
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for ActorAlign
[src]
impl StructuralEq for ActorAlign
[src]impl StructuralPartialEq for ActorAlign
[src]
impl StructuralPartialEq for ActorAlign
[src]Auto Trait Implementations
impl RefUnwindSafe for ActorAlign
impl RefUnwindSafe for ActorAlign
impl Send for ActorAlign
impl Send for ActorAlign
impl Sync for ActorAlign
impl Sync for ActorAlign
impl Unpin for ActorAlign
impl Unpin for ActorAlign
impl UnwindSafe for ActorAlign
impl UnwindSafe for ActorAlign
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,