pub struct PreviewCtx<'a> {Show 16 fields
pub project: &'a mut Project,
pub selection: &'a [u64],
pub playhead: f64,
pub playing: bool,
pub fullscreen: bool,
pub palette: &'a Palette,
pub undo: &'a mut dyn FnMut(&Project),
pub frame: Option<Arc<Frame>>,
pub gpu_texture: Option<(TextureId, [u32; 2])>,
pub tool: Tool,
pub quality: u32,
pub movie_mode: bool,
pub prerender: Option<f32>,
pub buffering: bool,
pub proxy: Option<f32>,
pub tracker: Option<(f32, f32, f32, f32)>,
}Fields§
§project: &'a mut Project§selection: &'a [u64]§playhead: f64§playing: bool§fullscreen: boolVideo only: no transport bar, no selection overlay / drag.
palette: &'a Palette§undo: &'a mut dyn FnMut(&Project)§frame: Option<Arc<Frame>>A newly rendered frame to upload this update (None = keep the current texture).
gpu_texture: Option<(TextureId, [u32; 2])>A texture the GPU renderer already holds, with its pixel size — painted directly, with no
readback and no upload. Takes precedence over frame.
tool: ToolActive editing tool (Tool::Select = drag moves the selected clip).
quality: u32Current preview render scale in percent (settings.preview_quality).
movie_mode: boolCurrent movie mode (settings.movie_mode).
prerender: Option<f32>Pre-render progress 0..1 while frames are being cached (None = not pre-rendering).
buffering: boolPlayback is held while the player refills its read-ahead: draw a spinner over the video.
proxy: Option<f32>Progress 0..1 of the proxy build in flight (None = no proxy being built).
tracker: Option<(f32, f32, f32, f32)>Tracker box of the Tracking pane (centre + half sizes, project px relative to the canvas centre) while that pane is on screen — drawn here and dragged to place the template.
Auto Trait Implementations§
impl<'a> Freeze for PreviewCtx<'a>
impl<'a> !RefUnwindSafe for PreviewCtx<'a>
impl<'a> !Send for PreviewCtx<'a>
impl<'a> !Sync for PreviewCtx<'a>
impl<'a> Unpin for PreviewCtx<'a>
impl<'a> !UnwindSafe for PreviewCtx<'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
§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