pub struct Slice {
pub name: String,
pub keys: Vec<SliceKey>,
pub user_data: Option<UserData>,
}
Expand description
A slice is a region of the sprite with some attributes.
They are created using the slice tool and can be animated over frames. See the official docs on slices for details.
Fields§
§name: String
The name of the slice. Not guaranteed to be unique.
keys: Vec<SliceKey>
A sequence of SliceKeys. Together, these describe the shape and position of a slice during animation.
user_data: Option<UserData>
User data associated with this slice.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slice
impl RefUnwindSafe for Slice
impl Send for Slice
impl Sync for Slice
impl Unpin for Slice
impl UnwindSafe for Slice
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