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]
impl<T, I> Sprite<T, I> where
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
pub fn new(image: I) -> Self
[src]
pub fn new(image: I) -> Self
pub fn flag(&self, dirty: bool)
[src]
pub fn flag(&self, dirty: bool)
pub fn is_dirty(&self) -> bool
[src]
pub fn is_dirty(&self) -> bool
pub fn z(&self) -> &usize
[src]
pub fn z(&self) -> &usize
pub fn layer(&self) -> &usize
[src]
pub fn layer(&self) -> &usize
pub fn set_z(&mut self, z: usize)
[src]
pub fn set_z(&mut self, z: usize)
pub fn set_layer(&mut self, layer: usize)
[src]
pub fn set_layer(&mut self, layer: usize)
pub fn set_z_and_layer(&mut self, z: usize, layer: usize)
[src]
pub fn set_z_and_layer(&mut self, z: usize, layer: usize)
Trait Implementations
impl<T, I> Debug for Sprite<T, I> where
T: 'static + Debug + Float + Send + Sync,
I: 'static + Debug + Send + Sync,
[src]
impl<T, I> Debug for Sprite<T, I> where
T: 'static + Debug + Float + Send + Sync,
I: 'static + Debug + Send + Sync,
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 + Float + Send + Sync,
I: 'static + Send + Sync,
[src]
impl<T, I> Component for Sprite<T, I> where
T: 'static + Float + Send + Sync,
I: 'static + Send + Sync,
type Storage = VecStorage<Self>
Associated storage type for this component.