Struct rusty_spine::TextureRegion
source · pub struct TextureRegion { /* private fields */ }
Expand description
A region of a texture, usually imported from an AtlasRegion
.
Implementations§
source§impl TextureRegion
impl TextureRegion
pub fn u(&self) -> f32
pub fn v(&self) -> f32
pub fn u2(&self) -> f32
pub fn v2(&self) -> f32
pub fn degrees(&self) -> i32
pub fn offset_x(&self) -> f32
pub fn offset_y(&self) -> f32
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn original_width(&self) -> i32
pub fn original_height(&self) -> i32
pub fn renderer_object(&self) -> RendererObject<'_>
sourcepub const fn c_ptr(&self) -> *mut spTextureRegion
pub const fn c_ptr(&self) -> *mut spTextureRegion
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl Debug for TextureRegion
impl Debug for TextureRegion
source§impl NewFromPtr<spTextureRegion> for TextureRegion
impl NewFromPtr<spTextureRegion> for TextureRegion
unsafe fn new_from_ptr(c_texture_region: *mut spTextureRegion) -> Self
Auto Trait Implementations§
impl Freeze for TextureRegion
impl RefUnwindSafe for TextureRegion
impl Send for TextureRegion
impl Sync for TextureRegion
impl Unpin for TextureRegion
impl UnwindSafe for TextureRegion
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