pub struct Sprite { /* private fields */ }Expand description
A rectangle that has a nice image on it.
Implementations§
Trait Implementations§
Source§impl Tint for Sprite
impl Tint for Sprite
fn color_mut(&mut self) -> &mut [f32; 4]
fn rgb(&mut self, r: f32, g: f32, b: f32) -> &mut Self
fn rgba(&mut self, r: f32, g: f32, b: f32, a: f32) -> &mut Self
fn r(&mut self, r: f32) -> &mut Self
fn g(&mut self, g: f32) -> &mut Self
fn b(&mut self, b: f32) -> &mut Self
fn a(&mut self, a: f32) -> &mut Self
fn tint(&mut self, r: f32, g: f32, b: f32, a: f32) -> &mut Self
Source§impl Transform for Sprite
impl Transform for Sprite
fn move_by(&mut self, x: f32, y: f32) -> &mut Self
fn at(&mut self, x: f32, y: f32) -> &mut Self
fn angle(&mut self, r: f32) -> &mut Self
fn rotate(&mut self, r: f32) -> &mut Self
fn scale_by(&mut self, sx: f32, sy: f32) -> &mut Self
fn scale(&mut self, sx: f32, sy: f32) -> &mut Self
impl Copy for Sprite
Auto Trait Implementations§
impl Freeze for Sprite
impl RefUnwindSafe for Sprite
impl Send for Sprite
impl Sync for Sprite
impl Unpin for Sprite
impl UnwindSafe for Sprite
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