pub struct PipKeyframe {
pub time: i64,
pub pos_x: f64,
pub pos_y: f64,
pub scale_x: f64,
pub scale_y: f64,
pub opacity: f64,
}Expand description
A single keyframe that defines (position_x, position_y, scale_x, scale_y, opacity) at a given timeline position.
All values are in normalised coordinates where the primary frame occupies
the unit square [0.0, 1.0] × [0.0, 1.0]:
pos_x / pos_y— top-left anchor of the PiP window.scale_x / scale_y— fraction of the primary frame’s width/height.opacity— 0.0 (invisible) … 1.0 (fully opaque).
Fields§
§time: i64Timeline position (timebase units).
pos_x: f64Horizontal position (normalised, 0.0 = left edge).
pos_y: f64Vertical position (normalised, 0.0 = top edge).
scale_x: f64Horizontal scale (fraction of primary width).
scale_y: f64Vertical scale (fraction of primary height).
opacity: f64Opacity (0.0–1.0).
Implementations§
Trait Implementations§
Source§impl Clone for PipKeyframe
impl Clone for PipKeyframe
Source§fn clone(&self) -> PipKeyframe
fn clone(&self) -> PipKeyframe
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 PipKeyframe
impl Debug for PipKeyframe
Source§impl PartialEq for PipKeyframe
impl PartialEq for PipKeyframe
Source§fn eq(&self, other: &PipKeyframe) -> bool
fn eq(&self, other: &PipKeyframe) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PipKeyframe
Auto Trait Implementations§
impl Freeze for PipKeyframe
impl RefUnwindSafe for PipKeyframe
impl Send for PipKeyframe
impl Sync for PipKeyframe
impl Unpin for PipKeyframe
impl UnsafeUnpin for PipKeyframe
impl UnwindSafe for PipKeyframe
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