pub struct GlyphUpload {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub coverage: Vec<u8>,
}Expand description
Pixels a renderer must copy into its atlas texture.
Fields§
§x: u32Left edge in the atlas, in texels.
y: u32Top edge in the atlas, in texels.
width: u32Width in texels.
height: u32Height in texels.
coverage: Vec<u8>Row-major coverage, width bytes per row; includes the glyph’s transparent border.
Trait Implementations§
Source§impl Clone for GlyphUpload
impl Clone for GlyphUpload
Source§impl Debug for GlyphUpload
impl Debug for GlyphUpload
impl Eq for GlyphUpload
Source§impl PartialEq for GlyphUpload
impl PartialEq for GlyphUpload
impl StructuralPartialEq for GlyphUpload
Auto Trait Implementations§
impl Freeze for GlyphUpload
impl RefUnwindSafe for GlyphUpload
impl Send for GlyphUpload
impl Sync for GlyphUpload
impl Unpin for GlyphUpload
impl UnsafeUnpin for GlyphUpload
impl UnwindSafe for GlyphUpload
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