Struct rusty_spine::Skin
source · pub struct Skin { /* private fields */ }
Expand description
A container for attachments which can be applied to a skeleton.
Implementations§
source§impl Skin
impl Skin
pub fn new(name: &str) -> Skin
sourcepub unsafe fn add_skin(&mut self, other: &Skin)
pub unsafe fn add_skin(&mut self, other: &Skin)
Add a skin to this skin.
Typically used on a newly created skin (via Skin::new
) to create conglomerate skins. A
safer way to create conglomerate skins is to use Skeleton::set_skins_by_name
.
§Safety
Skins must all originate from the same SkeletonData
.
pub fn copy_skin(&mut self, other: &Skin)
pub fn attachments(&self) -> Vec<AttachmentEntry>
pub fn name(&self) -> &str
Trait Implementations§
source§impl NewFromPtr<spSkin> for Skin
impl NewFromPtr<spSkin> for Skin
unsafe fn new_from_ptr(c_skin: *mut spSkin) -> Self
Auto Trait Implementations§
impl Freeze for Skin
impl RefUnwindSafe for Skin
impl Send for Skin
impl Sync for Skin
impl Unpin for Skin
impl UnwindSafe for Skin
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