#[repr(u8)]pub enum TextAlignment {
Left = 0,
Center = 1,
Right = 2,
Flexible = 3,
}Expand description
The text alignment relative to a specified spacepoint. All variants center the text vertically.
Variants§
Left = 0
Align the left side of the text to the position. Vertically centered.
Center = 1
Center the text on the position.
Right = 2
Align the right side of the text to the position. Vertically centered.
Flexible = 3
Center the text on the position if possible, but the vlogger is allowed to shift the text by a small amount for better readability.
Trait Implementations§
Source§impl Clone for TextAlignment
impl Clone for TextAlignment
Source§fn clone(&self) -> TextAlignment
fn clone(&self) -> TextAlignment
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 TextAlignment
impl Debug for TextAlignment
Source§impl Default for TextAlignment
impl Default for TextAlignment
Source§fn default() -> TextAlignment
fn default() -> TextAlignment
Returns the “default value” for a type. Read more
impl Copy 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> 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