Expand description
Default extra
field type. Non-layout data for vertex generation.
Fields
color: [f32; 4]
z: f32
Trait Implementations
sourceimpl<F: Font, H: BuildHasher> GlyphCruncher<F, Extra> for GlyphBrush<F, H>
impl<F: Font, H: BuildHasher> GlyphCruncher<F, Extra> for GlyphBrush<F, H>
sourcefn 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
sourcefn 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
sourcefn fonts(&self) -> &[F]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
fn fonts(&self) -> &[F]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Returns the available fonts. Read more
impl Copy for Extra
Auto Trait Implementations
impl RefUnwindSafe for Extra
impl Send for Extra
impl Sync for Extra
impl Unpin for Extra
impl UnwindSafe for Extra
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.