pub enum TextBaseline {
Top,
Hanging,
Middle,
Alphabetic,
Ideographic,
Bottom,
}
Expand description
Text baseline being used when drawing text
Variants§
Top
Text baseline is top of the em square
Hanging
Text baseline is the hanging baseline.
Middle
Text baseline is the middle of the em square.
Alphabetic
Text baseline is the normal alphabetic baseline. (default)
Ideographic
Text baseline is the ideographic baseline
Bottom
Text baseline is the bottom of the bounding box.
Trait Implementations§
Source§impl Default for TextBaseline
impl Default for TextBaseline
Source§fn default() -> TextBaseline
fn default() -> TextBaseline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextBaseline
impl RefUnwindSafe for TextBaseline
impl Send for TextBaseline
impl Sync for TextBaseline
impl Unpin for TextBaseline
impl UnwindSafe for TextBaseline
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