Enum flo_animation::LayerEdit
[−]
[src]
pub enum LayerEdit { Paint(Duration, PaintEdit), AddKeyFrame(Duration), RemoveKeyFrame(Duration), }
Represents an edit to a layer
Variants
Paint(Duration, PaintEdit)
Edit to a frame at a specific time
AddKeyFrame(Duration)
Adds a keyframe at a particular point in time
Edits don't have to correspond to a keyframe - instead, keyframes indicate where the layer is cleared.
RemoveKeyFrame(Duration)
Removes a keyframe previously added at a particular duration
Methods
impl LayerEdit
[src]
pub fn assign_element_id<AssignFn: FnOnce() -> i64>(
self,
assign_element_id: AssignFn
) -> LayerEdit
[src]
self,
assign_element_id: AssignFn
) -> LayerEdit
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 LayerEdit
[src]
fn clone(&self) -> LayerEdit
[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 LayerEdit
[src]
fn eq(&self, __arg_0: &LayerEdit) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LayerEdit) -> bool
[src]
This method tests for !=
.