pub enum MacroAction {
MoveClip {
clip_id: u64,
delta: i64,
},
TrimIn {
clip_id: u64,
delta: i64,
},
TrimOut {
clip_id: u64,
delta: i64,
},
SplitAt {
clip_id: u64,
offset: i64,
},
DeleteClip {
clip_id: u64,
},
SetOpacity {
clip_id: u64,
opacity: f32,
},
SetSpeed {
clip_id: u64,
speed: f64,
},
ToggleMute {
clip_id: u64,
},
InsertGap {
position: i64,
duration: i64,
},
Noop,
}Expand description
An atomic edit operation that can be recorded and replayed.
Variants§
MoveClip
Move a clip by delta timebase units on its current track.
TrimIn
Trim the in-point of a clip.
TrimOut
Trim the out-point of a clip.
SplitAt
Split a clip at a relative offset from its start.
Fields
DeleteClip
Delete a clip.
SetOpacity
Set clip opacity.
SetSpeed
Set clip speed multiplier.
ToggleMute
Toggle clip mute.
InsertGap
Insert a gap (ripple) at a timeline position.
Noop
A no-operation marker (can be used as a separator in sequences).
Implementations§
Source§impl MacroAction
impl MacroAction
Sourcepub fn targets_clip(&self) -> Option<u64>
pub fn targets_clip(&self) -> Option<u64>
Returns the clip ID this action targets, if any.
Trait Implementations§
Source§impl Clone for MacroAction
impl Clone for MacroAction
Source§fn clone(&self) -> MacroAction
fn clone(&self) -> MacroAction
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 MacroAction
impl Debug for MacroAction
Source§impl Display for MacroAction
impl Display for MacroAction
Source§impl PartialEq for MacroAction
impl PartialEq for MacroAction
Source§fn eq(&self, other: &MacroAction) -> bool
fn eq(&self, other: &MacroAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MacroAction
Auto Trait Implementations§
impl Freeze for MacroAction
impl RefUnwindSafe for MacroAction
impl Send for MacroAction
impl Sync for MacroAction
impl Unpin for MacroAction
impl UnsafeUnpin for MacroAction
impl UnwindSafe for MacroAction
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more