Struct glyph_brush_layout::SectionText [−][src]
pub struct SectionText<'a> { pub text: &'a str, pub scale: Scale, pub color: Color, 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: Color
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> Debug for SectionText<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Clone for SectionText<'a>
[src]
impl<'a> Clone for SectionText<'a>
fn clone(&self) -> SectionText<'a>
[src]
fn clone(&self) -> SectionText<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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<'a> Copy for SectionText<'a>
impl Default for SectionText<'static>
[src]
impl Default for SectionText<'static>
Auto Trait Implementations
impl<'a> Send for SectionText<'a>
impl<'a> Send for SectionText<'a>
impl<'a> Sync for SectionText<'a>
impl<'a> Sync for SectionText<'a>