Struct webgl2_glyph::glyph_brush::legacy::SectionText [−][src]
pub struct SectionText<'a> {
pub text: &'a str,
pub scale: PxScale,
pub color: [f32; 4],
pub font_id: FontId,
}
Fields
text: &'a str
Text to render
scale: PxScale
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
.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SectionText<'a>
impl<'a> Send for SectionText<'a>
impl<'a> Sync for SectionText<'a>
impl<'a> Unpin for SectionText<'a>
impl<'a> UnwindSafe for SectionText<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more