pub struct SlotData { /* private fields */ }Implementations§
Source§impl SlotData
impl SlotData
pub fn get_index(&self) -> usize
pub fn get_name(&self) -> &str
Sourcepub fn get_bone<'a>(&self, skeleton_data: &'a SkeletonData) -> &'a BoneData
pub fn get_bone<'a>(&self, skeleton_data: &'a SkeletonData) -> &'a BoneData
Mirrors the official C++ SlotData::getBoneData() relation through SkeletonData.
pub fn get_attachment_name(&self) -> &str
pub fn set_attachment_name(&mut self, attachment_name: impl Into<String>)
pub fn get_blend_mode(&self) -> BlendMode
pub fn set_blend_mode(&mut self, blend: BlendMode)
pub fn get_visible(&self) -> bool
pub fn set_visible(&mut self, visible: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SlotData
impl RefUnwindSafe for SlotData
impl Send for SlotData
impl Sync for SlotData
impl Unpin for SlotData
impl UnsafeUnpin for SlotData
impl UnwindSafe for SlotData
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