pub struct TileRect {
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
}
Expand description
Used to provide the location and dimensions of the required tile on the tiles tileset image.
Functionally similar to SDL2 Rect.
Fields§
§x: i32
§y: i32
§width: u32
§height: u32
Trait Implementations§
impl StructuralPartialEq for TileRect
Auto Trait Implementations§
impl Freeze for TileRect
impl RefUnwindSafe for TileRect
impl Send for TileRect
impl Sync for TileRect
impl Unpin for TileRect
impl UnwindSafe for TileRect
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