Struct rusty_spine::PathAttachment
source · [−]pub struct PathAttachment { /* private fields */ }
Expand description
An attachment of vertices forming a Bezier curve.
Implementations
sourceimpl PathAttachment
impl PathAttachment
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 closed(&self) -> bool
pub fn set_closed(&mut self, value: bool)
pub fn color(&self) -> Color
pub fn color_mut(&mut self) -> &mut Color
pub fn constant_speed(&self) -> bool
pub fn set_constant_speed(&mut self, value: bool)
pub unsafe fn lengths(&self) -> *mut c_float
pub fn c_ptr(&self) -> *mut spPathAttachment
Trait Implementations
sourceimpl Debug for PathAttachment
impl Debug for PathAttachment
sourceimpl NewFromPtr<spPathAttachment> for PathAttachment
impl NewFromPtr<spPathAttachment> for PathAttachment
unsafe fn new_from_ptr(c_path_attachment: *const spPathAttachment) -> Self
Auto Trait Implementations
impl RefUnwindSafe for PathAttachment
impl Send for PathAttachment
impl Sync for PathAttachment
impl Unpin for PathAttachment
impl UnwindSafe for PathAttachment
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