pub enum TextFontAlignType {
Auto,
Top,
Center,
Baseline,
Bottom,
}Expand description
This simple type specifies the different kinds of font alignment.
Variants§
Auto
When the text flow is horizontal or simple vertical same as fontBaseline but for other vertical modes same as fontCenter.
Top
The letters are anchored to the top baseline of a single line.
Center
The letters are anchored between the two baselines of a single line.
Baseline
The letters are anchored to the bottom baseline of a single line.
Bottom
The letters are anchored to the very bottom of a single line. This is different than the bottom baseline because of letters such as “g,” “q,” “y,” etc.
Trait Implementations§
Source§impl Clone for TextFontAlignType
impl Clone for TextFontAlignType
Source§fn clone(&self) -> TextFontAlignType
fn clone(&self) -> TextFontAlignType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextFontAlignType
Source§impl Debug for TextFontAlignType
impl Debug for TextFontAlignType
Source§impl FromStr for TextFontAlignType
impl FromStr for TextFontAlignType
Source§impl PartialEq for TextFontAlignType
impl PartialEq for TextFontAlignType
Source§fn eq(&self, other: &TextFontAlignType) -> bool
fn eq(&self, other: &TextFontAlignType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextFontAlignType
Auto Trait Implementations§
impl Freeze for TextFontAlignType
impl RefUnwindSafe for TextFontAlignType
impl Send for TextFontAlignType
impl Sync for TextFontAlignType
impl Unpin for TextFontAlignType
impl UnsafeUnpin for TextFontAlignType
impl UnwindSafe for TextFontAlignType
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