pub struct PreviewTile {
pub index: u32,
pub sheet: usize,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
Where the picture for a time is.
Fields§
§index: u32Which tile, from 0.
sheet: usizeWhich sheet: an index into Previews::sheets.
x: u32The tile’s rectangle in the sheet, in pixels at its original size.
y: u32§width: u32§height: u32Trait Implementations§
Source§impl Clone for PreviewTile
impl Clone for PreviewTile
impl Copy for PreviewTile
Source§impl Debug for PreviewTile
impl Debug for PreviewTile
impl Eq for PreviewTile
Source§impl PartialEq for PreviewTile
impl PartialEq for PreviewTile
impl StructuralPartialEq for PreviewTile
Auto Trait Implementations§
impl Forget for PreviewTile
impl Freeze for PreviewTile
impl Move for PreviewTile
impl RefUnwindSafe for PreviewTile
impl Send for PreviewTile
impl Sync for PreviewTile
impl Unpin for PreviewTile
impl UnsafeUnpin for PreviewTile
impl UnwindSafe for PreviewTile
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