pub enum TextAlignment {
Left,
Center,
Right,
Start,
End,
DetectFromContent,
Justify,
}Expand description
Defines how text is aligned.
Variants§
Left
The text is left-aligned.
Center
The text is centered.
Right
The text is right-aligned.
Start
The beginning of the text is aligned to the edge of the available space.
End
The end of the text is aligned to the edge of the available space.
DetectFromContent
Text alignment is inferred from the text content.
When the text alignment is calculated without taking the flow direction
into account this value is treated as TextAlignment::Left.
Justify
Text is justified within the available space.
Trait Implementations§
Source§impl Clone for TextAlignment
impl Clone for TextAlignment
impl Copy for TextAlignment
Source§impl Debug for TextAlignment
impl Debug for TextAlignment
Source§impl Default for TextAlignment
impl Default for TextAlignment
impl Eq for TextAlignment
Source§impl Hash for TextAlignment
impl Hash for TextAlignment
Source§impl MarkupTyped for TextAlignment
impl MarkupTyped for TextAlignment
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for TextAlignment
impl PartialEq for TextAlignment
impl StructuralPartialEq for TextAlignment
Auto Trait Implementations§
impl Freeze for TextAlignment
impl RefUnwindSafe for TextAlignment
impl Send for TextAlignment
impl Sync for TextAlignment
impl Unpin for TextAlignment
impl UnsafeUnpin for TextAlignment
impl UnwindSafe for TextAlignment
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