Struct wgpu_glyph::Extra [−][src]
Expand description
Default extra
field type. Non-layout data for vertex generation.
Fields
color: [f32; 4]
z: f32
Trait Implementations
fn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> SectionGlyphIter<'b> where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
fn glyphs_custom_layout<'a, 'b, S, L>(
&'b mut self,
section: S,
custom_layout: &L
) -> SectionGlyphIter<'b> where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
Returns an iterator over the PositionedGlyph
s of the given section with a custom layout. Read more
Returns the available fonts. Read more
fn glyph_bounds_custom_layout<'a, S, L>(
&mut self,
section: S,
custom_layout: &L
) -> Option<Rect> where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
fn glyph_bounds_custom_layout<'a, S, L>(
&mut self,
section: S,
custom_layout: &L
) -> Option<Rect> where
L: GlyphPositioner + Hash,
S: Into<Cow<'a, Section<'a>>>,
Returns a bounding box for the section glyphs calculated using each glyph’s vertical & horizontal metrics. Read more
Returns an iterator over the PositionedGlyph
s of the given section. Read more
Auto Trait Implementations
impl RefUnwindSafe for Extra
impl UnwindSafe for Extra
Blanket Implementations
Mutably borrows from an owned value. Read more