pub enum SoftwareGlyphAtlasRunGlyph {
Cached(SoftwareGlyphAtlasPlacement),
New(SoftwareGlyphAtlasGlyph),
}Expand description
One glyph of a text run for a renderer that draws from a glyph atlas.
Variants§
Cached(SoftwareGlyphAtlasPlacement)
The mask is already cached, so only the placement is needed.
New(SoftwareGlyphAtlasGlyph)
The mask was not cached, so the glyph comes with it.
Implementations§
Source§impl SoftwareGlyphAtlasRunGlyph
impl SoftwareGlyphAtlasRunGlyph
Sourcepub fn placement(&self) -> SoftwareGlyphAtlasPlacement
pub fn placement(&self) -> SoftwareGlyphAtlasPlacement
The placement of the glyph in either case.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoftwareGlyphAtlasRunGlyph
impl RefUnwindSafe for SoftwareGlyphAtlasRunGlyph
impl Send for SoftwareGlyphAtlasRunGlyph
impl Sync for SoftwareGlyphAtlasRunGlyph
impl Unpin for SoftwareGlyphAtlasRunGlyph
impl UnsafeUnpin for SoftwareGlyphAtlasRunGlyph
impl UnwindSafe for SoftwareGlyphAtlasRunGlyph
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