pub struct Extra {
pub color: [f32; 4],
pub z: f32,
}
Expand description
Default extra
field type. Non-layout data for vertex generation.
Fields§
§color: [f32; 4]
§z: f32
Trait Implementations§
source§impl<R, GF, F, H> GlyphCruncher<F, Extra> for GlyphBrush<R, GF, F, H>where
F: Font,
R: Resources,
GF: Factory<R>,
H: BuildHasher,
impl<R, GF, F, H> GlyphCruncher<F, Extra> for GlyphBrush<R, GF, F, H>where F: Font, R: Resources, GF: Factory<R>, H: BuildHasher,
source§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 moresource§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