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

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.