Struct specs_sprite::Sprite [−][src]
pub struct Sprite<T, I> { pub image: I, pub x: T, pub y: T, pub w: T, pub h: T, pub width: T, pub height: T, // some fields omitted }
Fields
image: I
x: T
y: T
w: T
h: T
width: T
height: T
Methods
impl<T, I> Sprite<T, I> where
T: Float,
[src]
impl<T, I> Sprite<T, I> where
T: Float,
impl<T, I> Sprite<T, I>
[src]
impl<T, I> Sprite<T, I>
pub fn compare(&self, other: &Self) -> Ordering
[src]
pub fn compare(&self, other: &Self) -> Ordering
pub fn z(&self) -> usize
[src]
pub fn z(&self) -> usize
pub fn layer(&self) -> usize
[src]
pub fn layer(&self) -> usize
pub fn with_x(self, x: T) -> Self
[src]
pub fn with_x(self, x: T) -> Self
pub fn with_y(self, y: T) -> Self
[src]
pub fn with_y(self, y: T) -> Self
pub fn with_w(self, w: T) -> Self
[src]
pub fn with_w(self, w: T) -> Self
pub fn with_h(self, h: T) -> Self
[src]
pub fn with_h(self, h: T) -> Self
pub fn with_width(self, width: T) -> Self
[src]
pub fn with_width(self, width: T) -> Self
pub fn with_height(self, height: T) -> Self
[src]
pub fn with_height(self, height: T) -> Self
pub fn with_z(self, z: usize) -> Self
[src]
pub fn with_z(self, z: usize) -> Self
pub fn with_layer(self, layer: usize) -> Self
[src]
pub fn with_layer(self, layer: usize) -> Self
pub fn with_layer_and_z(self, layer: usize, z: usize) -> Self
[src]
pub fn with_layer_and_z(self, layer: usize, z: usize) -> Self
pub fn set_image(&mut self, image: I) -> &mut Self
[src]
pub fn set_image(&mut self, image: I) -> &mut Self
pub fn set_x(&mut self, x: T) -> &mut Self
[src]
pub fn set_x(&mut self, x: T) -> &mut Self
pub fn set_y(&mut self, y: T) -> &mut Self
[src]
pub fn set_y(&mut self, y: T) -> &mut Self
pub fn set_w(&mut self, w: T) -> &mut Self
[src]
pub fn set_w(&mut self, w: T) -> &mut Self
pub fn set_h(&mut self, h: T) -> &mut Self
[src]
pub fn set_h(&mut self, h: T) -> &mut Self
pub fn set_width(&mut self, width: T) -> &mut Self
[src]
pub fn set_width(&mut self, width: T) -> &mut Self
pub fn set_height(&mut self, height: T) -> &mut Self
[src]
pub fn set_height(&mut self, height: T) -> &mut Self
pub fn set_z(&mut self, z: usize) -> &mut Self
[src]
pub fn set_z(&mut self, z: usize) -> &mut Self
pub fn set_layer(&mut self, layer: usize) -> &mut Self
[src]
pub fn set_layer(&mut self, layer: usize) -> &mut Self
pub fn set_layer_and_z(&mut self, layer: usize, z: usize) -> &mut Self
[src]
pub fn set_layer_and_z(&mut self, layer: usize, z: usize) -> &mut Self
pub fn is_dirty(&self) -> bool
[src]
pub fn is_dirty(&self) -> bool
Trait Implementations
impl<T: Debug, I: Debug> Debug for Sprite<T, I>
[src]
impl<T: Debug, I: Debug> Debug for Sprite<T, I>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, I> Component for Sprite<T, I> where
T: 'static + Send + Sync,
I: 'static + Send + Sync,
[src]
impl<T, I> Component for Sprite<T, I> where
T: 'static + Send + Sync,
I: 'static + Send + Sync,
type Storage = FlaggedStorage<Self, DenseVecStorage<Self>>
Associated storage type for this component.