Struct gfx_glyph::OwnedSectionText [] [src]

pub struct OwnedSectionText {
    pub text: String,
    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.

Trait Implementations

impl Debug for OwnedSectionText
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for OwnedSectionText
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for OwnedSectionText
[src]

[src]

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

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

[src]

Performs the conversion.

Auto Trait Implementations