Struct rusty_spine::RegionAttachment
source · pub struct RegionAttachment { /* private fields */ }
Expand description
An attachment which draws a texture.
Implementations
sourceimpl RegionAttachment
impl RegionAttachment
pub fn new_from_ptr(c_region_attachment: *const spRegionAttachment) -> Self
pub unsafe fn compute_world_vertices(
&self,
slot: &Slot,
vertices: &mut [f32],
offset: i32,
stride: i32
)
pub unsafe fn update_region(&mut self)
pub fn name(&self) -> &str
pub fn attachment_type(&self) -> AttachmentType
pub fn path(&self) -> &str
pub fn x(&self) -> f32
pub fn y(&self) -> f32
pub fn scale_x(&self) -> f32
pub fn scale_y(&self) -> f32
pub fn rotation(&self) -> f32
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn color(&self) -> Color
pub fn uvs(&self) -> [c_float; 8]
pub fn offset(&self) -> [c_float; 8]
pub fn renderer_object(&self) -> RendererObject<'_>
pub fn region(&self) -> Option<CTmpRef<'_, Self, TextureRegion>>
pub fn region_mut(&mut self) -> Option<CTmpMut<'_, Self, TextureRegion>>
pub fn c_ptr(&self) -> *mut spRegionAttachment
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RegionAttachment
impl Send for RegionAttachment
impl Sync for RegionAttachment
impl Unpin for RegionAttachment
impl UnwindSafe for RegionAttachment
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