pub struct Rect {
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Expand description
Re-exported because SheetDesc::sample is spelled in it: a crate whose
public API names a foreign type and does not export it is one every caller
has to add a dependency for.
NineSlice and Rect are here for the same reason —
NineSliceSource’s fields are spelled in both.
A rectangle in sheet texels.
x/y are the top-left corner, matching image order and Aseprite’s own
frame rects, so a value read out of a JSON export needs no flipping.
Fields§
§x: u32§y: u32§w: u32§h: u32Implementations§
Trait Implementations§
impl Copy for Rect
impl Eq for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Forget for Rect
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnsafeUnpin for Rect
impl UnwindSafe for Rect
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