Struct rusty_spine::Slot
source · [−]pub struct Slot { /* private fields */ }
Expand description
A slot for an attachment.
Implementations
sourceimpl Slot
impl Slot
sourcepub unsafe fn set_attachment(&mut self, attachment: Option<Attachment>)
pub unsafe fn set_attachment(&mut self, attachment: Option<Attachment>)
Sets the attachment for this slot. This function is unsafe because there is no way to know if the attachment is compatible with this slot and may segfault if used incorrectly.
pub fn set_to_setup_pose(&mut self)
pub fn handle(&self) -> SlotHandle
pub fn color(&self) -> Color
pub fn color_mut(&mut self) -> &mut Color
pub fn dark_color(&self) -> Option<Color>
pub fn data(&self) -> CTmpRef<'_, Self, SlotData>
pub fn data_mut(&mut self) -> CTmpMut<'_, Self, SlotData>
pub fn bone(&self) -> CTmpRef<'_, Self, Bone>
pub fn bone_mut(&mut self) -> CTmpMut<'_, Self, Bone>
pub fn attachment(&self) -> Option<CTmpRef<'_, Self, Attachment>>
pub fn attachment_mut(&mut self) -> Option<CTmpMut<'_, Self, Attachment>>
pub fn c_ptr(&self) -> *mut spSlot
pub fn sequence_index(&self) -> i32
Trait Implementations
sourceimpl NewFromPtr<spSlot> for Slot
impl NewFromPtr<spSlot> for Slot
unsafe fn new_from_ptr(c_slot: *const spSlot) -> Self
Auto Trait Implementations
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnwindSafe for Slot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more