pub struct PreviewResponse {
pub seek: Option<f64>,
pub actions: Vec<Action>,
pub edited: bool,
pub canvas: (u32, u32),
pub set_quality: Option<u32>,
pub set_movie_mode: Option<bool>,
pub new_shape: Option<(ShapeKind, f32, f32, f32, f32)>,
pub new_points: Vec<(f32, f32)>,
pub stroke: Option<Stroke>,
pub mask_edit: bool,
pub set_tracker: Option<(f32, f32)>,
}Fields§
§seek: Option<f64>§actions: Vec<Action>Transport buttons map straight to actions (PlayPause, Stop, StepBack, …, MarkIn, ClearInOut).
edited: bool§canvas: (u32, u32)Pixel size available for the video image (for Player::set_canvas).
set_quality: Option<u32>The user picked another preview quality (percent) — the app stores it in Settings.
set_movie_mode: Option<bool>The user toggled Movie mode.
new_shape: Option<(ShapeKind, f32, f32, f32, f32)>A shape dragged out with a shape tool: (kind, centre x, centre y, half width, half height) in
project pixels relative to the canvas centre (same frame as Clip.x/y and ShapeStyle.w/h).
new_points: Vec<(f32, f32)>Vertices of a closed Polygon path, relative to that shape’s centre (empty = a regular n-gon).
stroke: Option<Stroke>A stroke recorded with the Draw tool (points relative to the canvas centre, timed from the press).
mask_edit: boolThe selected clip’s mask was edited with a mask tool.
set_tracker: Option<(f32, f32)>The tracker box was dragged to this centre (project px relative to the canvas centre).
Trait Implementations§
Source§impl Default for PreviewResponse
impl Default for PreviewResponse
Source§fn default() -> PreviewResponse
fn default() -> PreviewResponse
Auto Trait Implementations§
impl Freeze for PreviewResponse
impl RefUnwindSafe for PreviewResponse
impl Send for PreviewResponse
impl Sync for PreviewResponse
impl Unpin for PreviewResponse
impl UnwindSafe for PreviewResponse
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