Trait flo_animation::MutableAnimation
[−]
[src]
pub trait MutableAnimation: Send { fn set_size(&mut self, size: (f64, f64)); fn add_layer(&mut self, new_layer_id: u64); fn remove_layer(&mut self, old_layer_id: u64); fn edit_layer<'a>(&'a mut self, layer_id: u64) -> Option<Editor<'a, Layer>>; }
Trait implemented by objects that support editing the data associated with an animation
Normally edits are made by sending them via the edit()
method in
Animation
. This used to edit the actual data structure associated
with an animation.
Required Methods
fn set_size(&mut self, size: (f64, f64))
Sets the canvas size of this animation
fn add_layer(&mut self, new_layer_id: u64)
Creates a new layer with a particular ID
Has no effect if the layer ID is already in use
fn remove_layer(&mut self, old_layer_id: u64)
Removes the layer with the specified ID
fn edit_layer<'a>(&'a mut self, layer_id: u64) -> Option<Editor<'a, Layer>>
Opens a particular layer for editing