Struct glyph_brush_layout::SectionText[][src]

pub struct SectionText<'a> {
    pub text: &'a str,
    pub scale: Scale,
    pub color: Color,
    pub font_id: FontId,
}

Fields

Text to render

Position on screen to render text, in pixels from top-left. Defaults to (0, 0).

Rgba color of rendered text. Defaults to black.

Font id to use for this section.

It must be known to the GlyphBrush it is being used with, either FontId::default() or the return of add_font.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl Default for SectionText<'static>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<'a> Send for SectionText<'a>

impl<'a> Sync for SectionText<'a>