pub enum AnimationEditorCommand {
Show 16 variants
SetPlayhead(f64),
SetZoom(f32),
SetScroll(f32),
SetSnapping(TimelineSnap),
ClearSelection,
SelectClip(usize),
SelectTrack {
clip_index: usize,
track_index: usize,
},
SelectKeyframe(KeyframeSelection),
AddKeyframe {
clip_index: usize,
track_index: usize,
keyframe: Keyframe<AnimationValue>,
},
UpdateKeyframeEasing {
selection: KeyframeSelection,
easing: Easing,
},
MoveKeyframe {
selection: KeyframeSelection,
time: f64,
},
RemoveKeyframe(KeyframeSelection),
AddMarker {
name: String,
time: f64,
},
MoveMarker {
index: usize,
time: f64,
},
RenameMarker {
index: usize,
name: String,
},
RemoveMarker(usize),
}Variants§
SetPlayhead(f64)
SetZoom(f32)
SetScroll(f32)
SetSnapping(TimelineSnap)
ClearSelection
SelectClip(usize)
SelectTrack
SelectKeyframe(KeyframeSelection)
AddKeyframe
UpdateKeyframeEasing
MoveKeyframe
Move a keyframe to time, snapped and kept inside the timeline.
RemoveKeyframe(KeyframeSelection)
AddMarker
Add a marker at time, snapped and kept inside the timeline.
MoveMarker
Move the marker at index to time, snapped and kept inside the
timeline.
RenameMarker
RemoveMarker(usize)
Trait Implementations§
Source§impl Clone for AnimationEditorCommand
impl Clone for AnimationEditorCommand
Source§fn clone(&self) -> AnimationEditorCommand
fn clone(&self) -> AnimationEditorCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimationEditorCommand
impl Debug for AnimationEditorCommand
Source§impl PartialEq for AnimationEditorCommand
impl PartialEq for AnimationEditorCommand
impl StructuralPartialEq for AnimationEditorCommand
Auto Trait Implementations§
impl Forget for AnimationEditorCommand
impl Freeze for AnimationEditorCommand
impl Move for AnimationEditorCommand
impl RefUnwindSafe for AnimationEditorCommand
impl Send for AnimationEditorCommand
impl Sync for AnimationEditorCommand
impl Unpin for AnimationEditorCommand
impl UnsafeUnpin for AnimationEditorCommand
impl UnwindSafe for AnimationEditorCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.