pub enum HorizontalAlignment {
Stretch,
Left,
Center,
Right,
}Expand description
Defines how a control aligns itself horizontally in its parent control.
Variants§
Stretch
The control stretches to fill the width of the parent control.
Left
The control aligns itself to the left of the parent control.
Center
The control centers itself in the parent control.
Right
The control aligns itself to the right of the parent control.
Trait Implementations§
Source§impl Clone for HorizontalAlignment
impl Clone for HorizontalAlignment
impl Copy for HorizontalAlignment
Source§impl Debug for HorizontalAlignment
impl Debug for HorizontalAlignment
Source§impl Default for HorizontalAlignment
impl Default for HorizontalAlignment
impl Eq for HorizontalAlignment
Source§impl Hash for HorizontalAlignment
impl Hash for HorizontalAlignment
Source§impl MarkupTyped for HorizontalAlignment
impl MarkupTyped for HorizontalAlignment
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for HorizontalAlignment
impl PartialEq for HorizontalAlignment
impl StructuralPartialEq for HorizontalAlignment
Auto Trait Implementations§
impl Freeze for HorizontalAlignment
impl RefUnwindSafe for HorizontalAlignment
impl Send for HorizontalAlignment
impl Sync for HorizontalAlignment
impl Unpin for HorizontalAlignment
impl UnsafeUnpin for HorizontalAlignment
impl UnwindSafe for HorizontalAlignment
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more