pub struct SoftwareGlyphAtlasGlyph {
pub key: SoftwareGlyphAtlasKey,
pub mask: SoftwareGlyphAtlasMask,
pub x: i32,
pub y: i32,
pub color: Color,
}Expand description
A glyph with its mask, where to draw it and in which color.
Fields§
§key: SoftwareGlyphAtlasKeyAtlas key of the glyph.
mask: SoftwareGlyphAtlasMaskThe coverage mask of the glyph.
x: i32Horizontal position of the mask’s left edge in device pixels.
y: i32Vertical position of the mask’s top edge in device pixels.
color: ColorColor the glyph draws with.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoftwareGlyphAtlasGlyph
impl RefUnwindSafe for SoftwareGlyphAtlasGlyph
impl Send for SoftwareGlyphAtlasGlyph
impl Sync for SoftwareGlyphAtlasGlyph
impl Unpin for SoftwareGlyphAtlasGlyph
impl UnsafeUnpin for SoftwareGlyphAtlasGlyph
impl UnwindSafe for SoftwareGlyphAtlasGlyph
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