pub struct NineSliceKey {
pub key: SliceKey,
pub center_pos: Vec2<i32>,
pub center_size: Vec2<u32>,
}Expand description
A slice keyframe with a center-region.
Fields§
§key: SliceKeyThe slice’s keyframe.
center_pos: Vec2<i32>Position of the 9-slice’s center rect.
center_size: Vec2<u32>Size of the 9-slice’s center rect.
Trait Implementations§
Source§impl Clone for NineSliceKey
impl Clone for NineSliceKey
Source§fn clone(&self) -> NineSliceKey
fn clone(&self) -> NineSliceKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NineSliceKey
impl Debug for NineSliceKey
Source§impl Hash for NineSliceKey
impl Hash for NineSliceKey
Source§impl PartialEq for NineSliceKey
impl PartialEq for NineSliceKey
impl Eq for NineSliceKey
impl StructuralPartialEq for NineSliceKey
Auto Trait Implementations§
impl Freeze for NineSliceKey
impl RefUnwindSafe for NineSliceKey
impl Send for NineSliceKey
impl Sync for NineSliceKey
impl Unpin for NineSliceKey
impl UnsafeUnpin for NineSliceKey
impl UnwindSafe for NineSliceKey
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