Struct webgl2_glyph::glyph_brush::legacy::OwnedSectionText [−][src]
pub struct OwnedSectionText {
pub text: String,
pub scale: PxScale,
pub color: [f32; 4],
pub font_id: FontId,
}
Fields
text: String
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
.
Trait Implementations
Returns the “default value” for a type. Read more
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 RefUnwindSafe for OwnedSectionText
impl Send for OwnedSectionText
impl Sync for OwnedSectionText
impl Unpin for OwnedSectionText
impl UnwindSafe for OwnedSectionText
Blanket Implementations
Mutably borrows from an owned value. Read more