Trait flo_animation::Layer [] [src]

pub trait Layer: Send {
    fn id(&self) -> u64;
fn supported_edit_types(&self) -> Vec<LayerEditType>;
fn get_frame_at_time(&self, time_index: Duration) -> Arc<Frame>;
fn get_key_frames_during_time(
        &self,
        when: Range<Duration>
    ) -> Box<Iterator<Item = Duration>>;
fn add_key_frame(&mut self, when: Duration);
fn remove_key_frame(&mut self, when: Duration);
fn as_vector_layer<'a>(&'a self) -> Option<Reader<'a, VectorLayer>>;
fn edit_vectors<'a>(&'a mut self) -> Option<Editor<'a, VectorLayer>>; fn get_key_frames(&self) -> Box<Iterator<Item = Duration>> { ... } }

A layer represents a renderable plane in an animation

Required Methods

The ID associated with this layer

The types of edit that are supported by this layer

Retrieves a frame from this layer with the specified parameters

Retrieves the times where key frames exist during a specified time range

Adds a new key frame at the specified time

Removes a key frame from the specified time

Retrieves the definition of this layer as a vector layer

Retrieves an editor for the vector layer

Provided Methods

Retrieves the times where key frames exist

Implementors