pub struct AtlasTile {
pub kind: AtlasKind,
pub layer: u32,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub origin: (i32, i32),
}Expand description
Location of an image inside the atlas.
Fields§
§kind: AtlasKind§layer: u32§x: u32§y: u32§width: u32§height: u32§origin: (i32, i32)Offset of the bitmap from its anchor point (e.g. glyph origin), copied
from AtlasImage::origin.
Implementations§
Trait Implementations§
impl Copy for AtlasTile
impl StructuralPartialEq for AtlasTile
Auto Trait Implementations§
impl Freeze for AtlasTile
impl RefUnwindSafe for AtlasTile
impl Send for AtlasTile
impl Sync for AtlasTile
impl Unpin for AtlasTile
impl UnsafeUnpin for AtlasTile
impl UnwindSafe for AtlasTile
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