Struct wgpu_glyph::OwnedText [−][src]
pub struct OwnedText<X = Extra> {
pub text: String,
pub scale: PxScale,
pub font_id: FontId,
pub extra: X,
}
Fields
text: String
Text to render.
scale: PxScale
Pixel scale of text. Defaults to 16.
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
.
extra: X
Implementations
Trait Implementations
Auto Trait Implementations
impl<X> RefUnwindSafe for OwnedText<X> where
X: RefUnwindSafe,
impl<X> UnwindSafe for OwnedText<X> where
X: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more