pub struct LinkManager { /* private fields */ }Expand description
Manager for clip links.
Implementations§
Source§impl LinkManager
impl LinkManager
Sourcepub fn add_link(
&mut self,
clip_a: ClipId,
clip_b: ClipId,
link_type: LinkType,
) -> usize
pub fn add_link( &mut self, clip_a: ClipId, clip_b: ClipId, link_type: LinkType, ) -> usize
Add a link between two clips.
Sourcepub fn link_video_audio(
&mut self,
video_clip: ClipId,
audio_clip: ClipId,
) -> usize
pub fn link_video_audio( &mut self, video_clip: ClipId, audio_clip: ClipId, ) -> usize
Add a video-audio link.
Sourcepub fn remove_link(&mut self, index: usize) -> Option<ClipLink>
pub fn remove_link(&mut self, index: usize) -> Option<ClipLink>
Remove a link by index.
Sourcepub fn remove_clip_links(&mut self, clip_id: ClipId) -> Vec<ClipLink>
pub fn remove_clip_links(&mut self, clip_id: ClipId) -> Vec<ClipLink>
Remove all links involving a clip.
Sourcepub fn get_clip_links(&self, clip_id: ClipId) -> Vec<&ClipLink>
pub fn get_clip_links(&self, clip_id: ClipId) -> Vec<&ClipLink>
Get all links involving a clip.
Sourcepub fn get_linked_clips(
&self,
clip_id: ClipId,
link_type: LinkType,
) -> Vec<ClipId> ⓘ
pub fn get_linked_clips( &self, clip_id: ClipId, link_type: LinkType, ) -> Vec<ClipId> ⓘ
Get linked clips of a specific type.
Sourcepub fn are_linked(&self, clip_a: ClipId, clip_b: ClipId) -> bool
pub fn are_linked(&self, clip_a: ClipId, clip_b: ClipId) -> bool
Check if two clips are linked.
Sourcepub fn active_links(&self) -> Vec<&ClipLink>
pub fn active_links(&self) -> Vec<&ClipLink>
Get all active links.
Trait Implementations§
Source§impl Debug for LinkManager
impl Debug for LinkManager
Source§impl Default for LinkManager
impl Default for LinkManager
Source§fn default() -> LinkManager
fn default() -> LinkManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinkManager
impl RefUnwindSafe for LinkManager
impl Send for LinkManager
impl Sync for LinkManager
impl Unpin for LinkManager
impl UnsafeUnpin for LinkManager
impl UnwindSafe for LinkManager
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