#[repr(u32)]pub enum TextVerticalAlignment {
Top = 0,
Center = 1,
Bottom = 2,
}
Expand description
This enum describes the different types of alignment of text along the vertical axis of a Text
element.
Variants§
Top = 0
The text will be aligned to the top of the containing box.
Center = 1
The text will be vertically centered within the containing box.
Bottom = 2
The text will be aligned to the bottom of the containing box.
Trait Implementations§
Source§impl Clone for TextVerticalAlignment
impl Clone for TextVerticalAlignment
Source§fn clone(&self) -> TextVerticalAlignment
fn clone(&self) -> TextVerticalAlignment
Returns a copy 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 TextVerticalAlignment
impl Debug for TextVerticalAlignment
Source§impl Default for TextVerticalAlignment
impl Default for TextVerticalAlignment
Source§impl Display for TextVerticalAlignment
impl Display for TextVerticalAlignment
Source§impl FromStr for TextVerticalAlignment
impl FromStr for TextVerticalAlignment
Source§impl Hash for TextVerticalAlignment
impl Hash for TextVerticalAlignment
Source§impl PartialEq for TextVerticalAlignment
impl PartialEq for TextVerticalAlignment
Source§impl TryFrom<&str> for TextVerticalAlignment
impl TryFrom<&str> for TextVerticalAlignment
impl Copy for TextVerticalAlignment
impl Eq for TextVerticalAlignment
impl StructuralPartialEq for TextVerticalAlignment
Auto Trait Implementations§
impl Freeze for TextVerticalAlignment
impl RefUnwindSafe for TextVerticalAlignment
impl Send for TextVerticalAlignment
impl Sync for TextVerticalAlignment
impl Unpin for TextVerticalAlignment
impl UnwindSafe for TextVerticalAlignment
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,
Converts the given value to a
SharedString
.