Struct gfx_glyph::GlyphInfo [] [src]

pub struct GlyphInfo<'a> {
    pub text: &'a str,
    pub scale: Scale,
    pub color: [f32; 4],
    pub font_id: FontId,
    // some fields omitted
}

A specialised view on a Section for the purposes of calculating glyph positions. Used by a GlyphPositioner.

See Layout for built-in positioner logic.

Fields

Section text, use remaining_chars() instead in order to respect skip settings, ie in leftover payloads.

Methods

impl<'a> GlyphInfo<'a>
[src]

[src]

Returns a unicode normalized char iterator, that respects the skipped chars that have already been already processed

Important traits for RemainingNormCharIndices<'a>
[src]

Returns a unicode normalized (byte_index, char) iterator, that respects the skipped chars that have already been already processed

[src]

Returns a new GlyphInfo instance whose remaining_chars() method will skip additional chars (not bytes!)

[src]

Returns a substring reference according the current skip value

Trait Implementations

impl<'a> Debug for GlyphInfo<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for GlyphInfo<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for GlyphInfo<'a>
[src]

impl<'a> From<SectionText<'a>> for GlyphInfo<'a>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> Send for GlyphInfo<'a>

impl<'a> Sync for GlyphInfo<'a>