Struct gfx_glyph::OwnedSectionText
[−]
[src]
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 Debug for OwnedSectionText
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for OwnedSectionText
[src]
fn clone(&self) -> OwnedSectionText
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for OwnedSectionText
[src]
impl<'a> From<&'a OwnedSectionText> for SectionText<'a>
[src]
fn from(owned: &'a OwnedSectionText) -> Self
[src]
Performs the conversion.