pub struct TimelineCtx<'a> {Show 13 fields
pub project: &'a mut Project,
pub selection: &'a mut Vec<u64>,
pub sel_transitions: &'a mut Vec<u64>,
pub playhead: &'a mut f64,
pub undo: &'a mut dyn FnMut(&Project),
pub waveforms: &'a mut WaveformCache,
pub palette: &'a Palette,
pub snap: bool,
pub playing: bool,
pub thumbs: Option<&'a mut ThumbCache>,
pub keep_ranges: &'a [(f64, f64)],
pub prerender: &'a [(f64, f64, bool)],
pub tool: Tool,
}Fields§
§project: &'a mut Project§selection: &'a mut Vec<u64>§sel_transitions: &'a mut Vec<u64>Selected transition ids (timeline bands) — separate from the clip selection: clicking one kind of thing deselects the other, Ctrl adds within its own kind.
playhead: &'a mut f64§undo: &'a mut dyn FnMut(&Project)Call with the project before mutating it (once per gesture) — pushes an undo snapshot.
waveforms: &'a mut WaveformCache§palette: &'a Palette§snap: bool§playing: bool§thumbs: Option<&'a mut ThumbCache>Thumbnail cache for video/image filmstrips. None = no filmstrips (e.g. headless tests).
keep_ranges: &'a [(f64, f64)]Timeline ranges shaded in palette.selection at 15 % alpha (auto-cut “keep” preview). Empty = nothing.
prerender: &'a [(f64, f64, bool)]Movie-mode pre-render coverage: merged (from, to, ready) runs, drawn as a bar along the top
of the ruler. Empty = movie mode is off / nothing requested.
tool: ToolActive tool strip tool. Cut splits a clicked clip, Marker drops a marker, Stretch retimes an edge drag instead of trimming it; everything else behaves as Select.
Auto Trait Implementations§
impl<'a> Freeze for TimelineCtx<'a>
impl<'a> !RefUnwindSafe for TimelineCtx<'a>
impl<'a> !Send for TimelineCtx<'a>
impl<'a> !Sync for TimelineCtx<'a>
impl<'a> Unpin for TimelineCtx<'a>
impl<'a> !UnwindSafe for TimelineCtx<'a>
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<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>
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