Struct rusty_spine::atlas::AtlasRegion
source · pub struct AtlasRegion { /* private fields */ }
Expand description
A texture region on an AtlasPage
.
Implementations§
source§impl AtlasRegion
impl AtlasRegion
pub fn texture_region(&self) -> CTmpRef<'_, Self, TextureRegion>
pub fn texture_region_mut(&mut self) -> CTmpMut<'_, Self, TextureRegion>
pub fn name(&self) -> &str
pub fn x(&self) -> i32
pub fn y(&self) -> i32
pub fn index(&self) -> usize
pub fn splits(&self) -> Option<&[c_int; 4]>
pub fn pads(&self) -> Option<&[c_int; 4]>
pub fn page(&self) -> CTmpRef<'_, Self, AtlasPage>
pub fn key_values(&self) -> Vec<KeyValue>
sourcepub const fn c_ptr(&self) -> *mut spAtlasRegion
pub const fn c_ptr(&self) -> *mut spAtlasRegion
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl Debug for AtlasRegion
impl Debug for AtlasRegion
source§impl NewFromPtr<spAtlasRegion> for AtlasRegion
impl NewFromPtr<spAtlasRegion> for AtlasRegion
unsafe fn new_from_ptr(c_atlas_region: *mut spAtlasRegion) -> Self
Auto Trait Implementations§
impl Freeze for AtlasRegion
impl RefUnwindSafe for AtlasRegion
impl Send for AtlasRegion
impl Sync for AtlasRegion
impl Unpin for AtlasRegion
impl UnwindSafe for AtlasRegion
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