[][src]Struct glyph_brush::OwnedSectionText

pub struct OwnedSectionText {
    pub text: String,
    pub scale: Scale,
    pub color: [f32; 4],
    pub font_id: FontId,
}

Fields

text: String

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> From<&'a OwnedSectionText> for SectionText<'a>[src]

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

impl Clone for OwnedSectionText[src]

impl Default for OwnedSectionText[src]

impl PartialEq<OwnedSectionText> for OwnedSectionText[src]

impl Debug for OwnedSectionText[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,