Struct gfx_glyph::SectionText [] [src]

pub struct SectionText<'a> {
    pub text: &'a str,
    pub scale: Scale,
    pub color: [f32; 4],
    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.

Methods

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

Trait Implementations

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

[src]

Formats the value using the given formatter.

impl<'a> Clone for SectionText<'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 SectionText<'a>
[src]

impl Default for SectionText<'static>
[src]

[src]

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

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

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> From<&'a OwnedSectionText> for SectionText<'a>
[src]

[src]

Performs the conversion.