Struct neko::graphic::Draw
[−]
pub struct Draw { /* fields omitted */ }
Sheet is like the Sheet of the drawned persona.
Methods
impl Draw
fn new(
position: &Sheet,
duration: i64,
buf: &[(Emotion, Texel)]
) -> Result<Draw, DrawError>
position: &Sheet,
duration: i64,
buf: &[(Emotion, Texel)]
) -> Result<Draw, DrawError>
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, &Vec<Texel>))
fn get_posture(&self) -> &Sheet
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
impl Debug for Draw
impl Default for Draw
impl Clone for Draw
fn clone(&self) -> Draw
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Draw)
Performs copy-assignment from source
. Read more