pub struct Text<'a> {
    pub text: &'a str,
    pub px: f32,
    pub font_index: usize,
    pub color: RGBA8,
    pub depth: f32,
}
Expand description

Configuration settings for text.

Fields

text: &'a str

The text to layout.

px: f32

The scale of the text in pixel units. The units of the scale are pixels per Em unit.

font_index: usize

The font to layout the text in.

color: RGBA8

The text color,

depth: f32

The depth value used for rendering the text.

Trait Implementations

Converts this type into the (usually inferred) input type.

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.