Struct editeur::sprite::draw::Draw
[−]
[src]
pub struct Draw { /* fields omitted */ }
Posture is like the Posture of the drawned persona.
Methods
impl Draw
[src]
fn new(position: &Posture,
duration: i64,
buf: &[(Emotion, Texel)])
-> Result<Self>
duration: i64,
buf: &[(Emotion, Texel)])
-> Result<Self>
fn current(&self) -> Option<(&Emotion, &Texel)>
The accessor method current
returns the pointed cell.
fn get_current_part(&self) -> Option<&Part>
fn set_current(&mut self, (emotion, texels): (&Emotion, &Vec<Texel>))
fn get_posture(&self) -> &Posture
fn get_position(&self) -> usize
The accessor method get_position
returns the position of
the file sprite cursor.
fn set_position(&mut self, position: usize)
The mutator method set_position
changes the position of
the file sprite cursor.
fn add_position(&mut self, position: usize) -> Option<()>
The mutator method add_position
increments the position of
the file sprite cursor.
fn sub_position(&mut self, position: usize) -> Option<()>
The mutator method sub_position
decrements the position of
the file sprite cursor.
fn get_duration(&self) -> &Duration
fn set_cell_at(&mut self, index: usize, texel: &Texel, emotion: &Emotion)
fn next(&mut self) -> Option<(&Emotion, &Texel)>
Trait Implementations
impl Copy for Draw
[src]
impl<'a> IntoIterator for &'a Draw
[src]
type Item = &'a (Emotion, Texel)
The type of the elements being iterated over.
type IntoIter = Iter<'a, (Emotion, Texel)>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl Debug for Draw
[src]
impl Clone for Draw
[src]
fn clone(&self) -> Draw
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more