Struct ilda::animation::Animation
[−]
[src]
pub struct Animation { /* fields omitted */ }
An animation is comprised of one or more frames.
Methods
impl Animation
[src]
fn read_file(filename: &str) -> Result<Animation, IldaError>
Read an animation from an ILDA file.
fn into_frame_iter<'a>(&'a self) -> AnimationFrameIterator<'a>
Get an frame iterator for the animation.
fn into_point_iter<'a>(&'a self) -> AnimationPointIterator<'a>
Get a point iterator for the animation, which will iterate over all points from all frames.
fn get_frames(&self) -> &Vec<Frame>
Return a reference to the frames.
fn frame_count(&self) -> usize
Return the number of frames in the animation.
fn get_frame(&self, position: usize) -> Option<&Frame>
Get a reference to the frame at the given offset, if it exists.
Trait Implementations
impl Clone for Animation
[src]
fn clone(&self) -> Animation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more