pub struct GlyphRunCommand<Font = FontData, Brush = Paint> {
pub font_data: Font,
pub font_size: f32,
pub hint: bool,
pub normalized_coords: Vec<NormalizedCoord>,
pub embolden: Vec2,
pub style: Style,
pub brush: Brush,
pub brush_alpha: f32,
pub transform: Affine,
pub glyph_transform: Option<Affine>,
pub glyphs: Vec<Glyph>,
}Expand description
Draws a run of glyphs
Fields§
§font_data: Font§font_size: f32§hint: bool§normalized_coords: Vec<NormalizedCoord>§embolden: Vec2§style: Style§brush: Brush§brush_alpha: f32§transform: Affine§glyph_transform: Option<Affine>§glyphs: Vec<Glyph>Trait Implementations§
Source§impl<Font: Clone, Brush: Clone> Clone for GlyphRunCommand<Font, Brush>
impl<Font: Clone, Brush: Clone> Clone for GlyphRunCommand<Font, Brush>
Source§fn clone(&self) -> GlyphRunCommand<Font, Brush>
fn clone(&self) -> GlyphRunCommand<Font, Brush>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Font: PartialEq, Brush: PartialEq> StructuralPartialEq for GlyphRunCommand<Font, Brush>
Auto Trait Implementations§
impl<Font, Brush> Freeze for GlyphRunCommand<Font, Brush>
impl<Font, Brush> RefUnwindSafe for GlyphRunCommand<Font, Brush>where
Font: RefUnwindSafe,
Brush: RefUnwindSafe,
impl<Font, Brush> Send for GlyphRunCommand<Font, Brush>
impl<Font, Brush> Sync for GlyphRunCommand<Font, Brush>
impl<Font, Brush> Unpin for GlyphRunCommand<Font, Brush>
impl<Font, Brush> UnsafeUnpin for GlyphRunCommand<Font, Brush>where
Font: UnsafeUnpin,
Brush: UnsafeUnpin,
impl<Font, Brush> UnwindSafe for GlyphRunCommand<Font, Brush>where
Font: UnwindSafe,
Brush: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more