enum Gesture {
Move {
ids: Vec<u64>,
orig: Vec<f64>,
kind: TrackKind,
tr: usize,
dt: f64,
dtrack: i32,
new_track: bool,
},
Trim {
ids: Vec<u64>,
start: bool,
edge: f64,
changed: bool,
},
Stretch {
id: u64,
start: bool,
edge: f64,
src_len: f64,
changed: bool,
},
Volume {
id: u64,
changed: bool,
},
Fade {
id: u64,
out: bool,
changed: bool,
},
Keys {
id: u64,
t: f64,
prop: Option<usize>,
range: (f64, f64),
changed: bool,
},
TransDur {
track: usize,
id: u64,
changed: bool,
},
Marker {
id: u64,
clip: Option<u64>,
changed: bool,
},
Spacer {
ids: Vec<u64>,
dt: f64,
room: f64,
},
}Variants§
Move
Move ids (selection + links). orig = start time of each id at drag start; tr = track of the pressed
clip; dt/dtrack = applied so far. new_track = the pointer is past the first/last row of kind,
so releasing here adds a track and drops the clips on it.
Trim
Trim the start (start) or end edge of ids; edge = edge time at drag start.
Stretch
Rate-stretch one clip by dragging an edge: the source window (src_len source seconds) is kept
and the speed follows the new duration.
Volume
Drag the volume line of an audio clip vertically.
Fade
Drag a fade handle horizontally (out = fade-out, else fade-in).
Keys
Drag the keyframe diamond(s) at clip-local time t: horizontally = time (every property keyed there),
vertically = the value of curve-editor property prop (value-lane mode only), mapped through the
value range captured at press so the diamond does not chase the pointer as the range grows.
TransDur
Drag a transition band edge (duration changes symmetrically around the cut).
Marker
Drag a marker: project marker (clip = None) or clip-local marker.
Spacer
Spacer tool: shift every clip starting at or after the press time. room = how far left the
group can go before it hits the clip in front of it (or 0).
Auto Trait Implementations§
impl Freeze for Gesture
impl RefUnwindSafe for Gesture
impl Send for Gesture
impl Sync for Gesture
impl Unpin for Gesture
impl UnwindSafe for Gesture
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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