pub struct AtlasImage<'a> {
pub kind: AtlasKind,
pub width: u32,
pub height: u32,
pub data: Cow<'a, [u8]>,
pub origin: (i32, i32),
}Expand description
Pixel data to insert into the atlas.
Fields§
§kind: AtlasKind§width: u32§height: u32§data: Cow<'a, [u8]>Tightly packed rows (width * bytes_per_pixel bytes each).
origin: (i32, i32)Offset of the bitmap’s top-left corner from its anchor point (glyphs:
(left, -top) relative to the pen position on the baseline).
Auto Trait Implementations§
impl<'a> Freeze for AtlasImage<'a>
impl<'a> RefUnwindSafe for AtlasImage<'a>
impl<'a> Send for AtlasImage<'a>
impl<'a> Sync for AtlasImage<'a>
impl<'a> Unpin for AtlasImage<'a>
impl<'a> UnsafeUnpin for AtlasImage<'a>
impl<'a> UnwindSafe for AtlasImage<'a>
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