pub struct AtlasRegion {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
A rectangular region within the texture atlas.
Fields§
§x: u32X offset in the atlas (pixels).
y: u32Y offset in the atlas (pixels).
width: u32Width of the region (pixels).
height: u32Height of the region (pixels).
Implementations§
Trait Implementations§
Source§impl Clone for AtlasRegion
impl Clone for AtlasRegion
Source§fn clone(&self) -> AtlasRegion
fn clone(&self) -> AtlasRegion
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AtlasRegion
impl Debug for AtlasRegion
Source§impl PartialEq for AtlasRegion
impl PartialEq for AtlasRegion
impl Copy for AtlasRegion
impl Eq for AtlasRegion
impl StructuralPartialEq for AtlasRegion
Auto Trait Implementations§
impl Freeze for AtlasRegion
impl RefUnwindSafe for AtlasRegion
impl Send for AtlasRegion
impl Sync for AtlasRegion
impl Unpin for AtlasRegion
impl UnwindSafe for AtlasRegion
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)