pub struct SliceKey {
pub from_frame: u32,
pub origin: (i32, i32),
pub size: (u32, u32),
pub slice9: Option<Slice9>,
pub pivot: Option<(i32, i32)>,
}
Expand description
The position and shape of a Slice, starting at a given frame.
Fields§
§from_frame: u32
Starting frame number for this slice key. This slice is valid from this frame to the end of the animation or the next slice key.
origin: (i32, i32)
Origin of the slice.
size: (u32, u32)
Size of the slice.
slice9: Option<Slice9>
9-slicing information.
pivot: Option<(i32, i32)>
Pivot information. Relative to the origin.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SliceKey
impl RefUnwindSafe for SliceKey
impl Send for SliceKey
impl Sync for SliceKey
impl Unpin for SliceKey
impl UnwindSafe for SliceKey
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