pub struct MultitrackConfig {
pub tracks: Vec<(u32, TrackType)>,
pub locks: Vec<TrackLock>,
pub visibility: Vec<TrackVisibility>,
}Expand description
Complete multi-track configuration for a timeline.
Fields§
§tracks: Vec<(u32, TrackType)>Ordered list of (track_id, TrackType) pairs.
locks: Vec<TrackLock>Lock states, one entry per track.
visibility: Vec<TrackVisibility>Visibility states, one entry per track.
Implementations§
Source§impl MultitrackConfig
impl MultitrackConfig
Sourcepub fn add_track(&mut self, track_id: u32, track_type: TrackType)
pub fn add_track(&mut self, track_id: u32, track_type: TrackType)
Add a new track and initialise its lock/visibility state.
Sourcepub fn lock_track(&mut self, track_id: u32, locked: bool)
pub fn lock_track(&mut self, track_id: u32, locked: bool)
Lock or unlock a track by ID. Does nothing if the track is not found.
Sourcepub fn mute_track(&mut self, track_id: u32, muted: bool)
pub fn mute_track(&mut self, track_id: u32, muted: bool)
Mute or unmute a track by ID. Does nothing if the track is not found.
Sourcepub fn solo_track(&mut self, track_id: u32, solo: bool)
pub fn solo_track(&mut self, track_id: u32, solo: bool)
Solo or un-solo a track by ID. Does nothing if the track is not found.
Sourcepub fn audible_tracks(&self) -> Vec<u32>
pub fn audible_tracks(&self) -> Vec<u32>
Return the IDs of all tracks whose audio is currently audible.
Sourcepub fn track_count(&self) -> usize
pub fn track_count(&self) -> usize
Return the total number of tracks.
Trait Implementations§
Source§impl Debug for MultitrackConfig
impl Debug for MultitrackConfig
Source§impl Default for MultitrackConfig
impl Default for MultitrackConfig
Source§fn default() -> MultitrackConfig
fn default() -> MultitrackConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultitrackConfig
impl RefUnwindSafe for MultitrackConfig
impl Send for MultitrackConfig
impl Sync for MultitrackConfig
impl Unpin for MultitrackConfig
impl UnsafeUnpin for MultitrackConfig
impl UnwindSafe for MultitrackConfig
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> 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