pub struct LayoutGlyph {
    pub start: usize,
    pub end: usize,
    pub x: f32,
    pub w: f32,
    pub rtl: bool,
    pub cache_key: CacheKey,
    pub x_int: i32,
    pub y_int: i32,
    pub color_opt: Option<Color>,
}
Expand description

A laid out glyph

Fields§

§start: usize

Start index of cluster in original line

§end: usize

End index of cluster in original line

§x: f32

X offset of hitbox

§w: f32

width of hitbox

§rtl: bool

True if the character is from an RTL script

§cache_key: CacheKey

Cache key, see CacheKey

§x_int: i32

Integer component of X offset in line

§y_int: i32

Integer component of Y offset in line

§color_opt: Option<Color>

Optional color override

Trait Implementations§

Formats the value using the given formatter. 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.