[][src]Struct glyph_brush::SectionText

pub struct SectionText<'a> {
    pub text: &'a str,
    pub scale: Scale,
    pub color: [f32; 4],
    pub font_id: FontId,
}

Fields

text: &'a str

Text to render

scale: Scale

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

color: [f32; 4]

Rgba color of rendered text. Defaults to black.

font_id: FontId

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]

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl Default for SectionText<'static>[src]

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

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

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.