pub struct TrackLayout {
pub track_index: u32,
pub label: String,
pub is_video: bool,
pub opacity: f64,
pub x_offset: f64,
pub y_offset: f64,
pub scale: f64,
}Expand description
A single track layout entry within a preset.
Fields§
§track_index: u32Track index.
label: StringTrack label (e.g., “A-Roll”, “B-Roll”, “Music”).
is_video: boolWhether this is a video track (false = audio).
opacity: f64Default opacity (0.0 to 1.0, video only).
x_offset: f64Position X offset (normalised 0.0..1.0, video only).
y_offset: f64Position Y offset (normalised 0.0..1.0, video only).
scale: f64Scale factor (1.0 = full size).
Implementations§
Source§impl TrackLayout
impl TrackLayout
Sourcepub fn with_transform(self, x: f64, y: f64, scale: f64) -> Self
pub fn with_transform(self, x: f64, y: f64, scale: f64) -> Self
Set position and scale for PIP / split-screen.
Sourcepub fn with_opacity(self, opacity: f64) -> Self
pub fn with_opacity(self, opacity: f64) -> Self
Set opacity.
Trait Implementations§
Source§impl Clone for TrackLayout
impl Clone for TrackLayout
Source§fn clone(&self) -> TrackLayout
fn clone(&self) -> TrackLayout
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 moreAuto Trait Implementations§
impl Freeze for TrackLayout
impl RefUnwindSafe for TrackLayout
impl Send for TrackLayout
impl Sync for TrackLayout
impl Unpin for TrackLayout
impl UnsafeUnpin for TrackLayout
impl UnwindSafe for TrackLayout
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