Struct rusty_spine::BoundingBoxAttachment
source · [−]pub struct BoundingBoxAttachment { /* private fields */ }
Expand description
An attachment made up of vertices for use in collision detection, hitboxes, etc.
Implementations
sourceimpl BoundingBoxAttachment
impl BoundingBoxAttachment
pub fn name(&self) -> &str
pub fn attachment_type(&self) -> AttachmentType
pub unsafe fn compute_world_vertices(
&self,
slot: &Slot,
start: i32,
count: i32,
world_vertices: &mut [f32],
offset: i32,
stride: i32
)
pub fn world_vertices_length(&self) -> i32
pub fn id(&self) -> i32
pub fn color(&self) -> Color
pub fn c_ptr(&self) -> *mut spBoundingBoxAttachment
Trait Implementations
sourceimpl Debug for BoundingBoxAttachment
impl Debug for BoundingBoxAttachment
sourceimpl NewFromPtr<spBoundingBoxAttachment> for BoundingBoxAttachment
impl NewFromPtr<spBoundingBoxAttachment> for BoundingBoxAttachment
unsafe fn new_from_ptr(
c_bounding_box_attachment: *const spBoundingBoxAttachment
) -> Self
Auto Trait Implementations
impl RefUnwindSafe for BoundingBoxAttachment
impl Send for BoundingBoxAttachment
impl Sync for BoundingBoxAttachment
impl Unpin for BoundingBoxAttachment
impl UnwindSafe for BoundingBoxAttachment
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