Struct specs_sprite::Sprite
[−]
[src]
pub struct Sprite<T, I> where
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync, {
pub image: I,
pub x: T,
pub y: T,
pub w: T,
pub h: T,
// some fields omitted
}
Fields
image: I
x: T
y: T
w: T
h: T
Methods
impl<T, I> Sprite<T, I> where
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
[src]
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
fn new(image: I) -> Self
[src]
fn flag(&self, dirty: bool)
[src]
fn is_dirty(&self) -> bool
[src]
fn z(&self) -> &usize
[src]
fn layer(&self) -> &usize
[src]
fn set_z(&mut self, z: usize)
[src]
fn set_layer(&mut self, layer: usize)
[src]
fn set_z_and_layer(&mut self, z: usize, layer: usize)
[src]
Trait Implementations
impl<T, I> Debug for Sprite<T, I> where
T: 'static + Debug + Float + Send + Sync,
I: 'static + Debug + Send + Sync,
[src]
T: 'static + Debug + Float + Send + Sync,
I: 'static + Debug + Send + Sync,
impl<T, I> Component for Sprite<T, I> where
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
[src]
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
type Storage = VecStorage<Self>
Associated storage type for this component.