Struct cosmic_text::ShapeGlyph

source ·
pub struct ShapeGlyph {
    pub start: usize,
    pub end: usize,
    pub x_advance: f32,
    pub y_advance: f32,
    pub x_offset: f32,
    pub y_offset: f32,
    pub font_id: ID,
    pub glyph_id: u16,
    pub color_opt: Option<Color>,
}
Expand description

A shaped glyph

Fields

start: usizeend: usizex_advance: f32y_advance: f32x_offset: f32y_offset: f32font_id: IDglyph_id: u16color_opt: Option<Color>

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.