Enum flo_animation::AnimationEdit
[−]
[src]
pub enum AnimationEdit { Layer(u64, LayerEdit), SetSize(f64, f64), AddNewLayer(u64), RemoveLayer(u64), }
Represents an edit to an animation object
Variants
Layer(u64, LayerEdit)
Edit to an existing layer
SetSize(f64, f64)
Sets the canvas size for this animation
AddNewLayer(u64)
Adds a new layer and assigns it the specified ID Has no effect if a layer with that ID already exists
RemoveLayer(u64)
Removes the layer with the specified ID
Methods
impl AnimationEdit
[src]
pub fn assign_element_id<AssignFn: FnOnce() -> i64>(
self,
assign_element_id: AssignFn
) -> AnimationEdit
[src]
self,
assign_element_id: AssignFn
) -> AnimationEdit
If this edit contains an unassigned element ID, calls the specified function to supply a new element ID. If the edit already has an ID, leaves it unchanged.
Trait Implementations
impl Clone for AnimationEdit
[src]
fn clone(&self) -> AnimationEdit
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for AnimationEdit
[src]
fn eq(&self, __arg_0: &AnimationEdit) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AnimationEdit) -> bool
[src]
This method tests for !=
.