Struct glow_glyph::Extra
source · [−]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 &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
fn fonts(&self) -> &[F]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more