pub struct SoftwareGlyphAtlasPlacement {
pub key: SoftwareGlyphAtlasKey,
pub x: i32,
pub y: i32,
pub width: usize,
pub height: usize,
pub color: Color,
}Expand description
Where to draw a glyph whose mask the atlas already holds.
Fields§
§key: SoftwareGlyphAtlasKeyAtlas key 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.
width: usizeMask width in pixels.
height: usizeMask height in pixels.
color: ColorColor the glyph draws with.
Trait Implementations§
Source§impl Clone for SoftwareGlyphAtlasPlacement
impl Clone for SoftwareGlyphAtlasPlacement
impl Copy for SoftwareGlyphAtlasPlacement
Auto Trait Implementations§
impl Freeze for SoftwareGlyphAtlasPlacement
impl RefUnwindSafe for SoftwareGlyphAtlasPlacement
impl Send for SoftwareGlyphAtlasPlacement
impl Sync for SoftwareGlyphAtlasPlacement
impl Unpin for SoftwareGlyphAtlasPlacement
impl UnsafeUnpin for SoftwareGlyphAtlasPlacement
impl UnwindSafe for SoftwareGlyphAtlasPlacement
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