pub struct GroupManager { /* private fields */ }Expand description
Manager for clip groups.
Implementations§
Source§impl GroupManager
impl GroupManager
Sourcepub fn create_group(&mut self) -> GroupId
pub fn create_group(&mut self) -> GroupId
Create a new group.
Sourcepub fn create_group_with_clips(
&mut self,
clips: Vec<ClipId>,
) -> EditResult<GroupId>
pub fn create_group_with_clips( &mut self, clips: Vec<ClipId>, ) -> EditResult<GroupId>
Create a group with clips.
Sourcepub fn delete_group(&mut self, group_id: GroupId) -> Option<ClipGroup>
pub fn delete_group(&mut self, group_id: GroupId) -> Option<ClipGroup>
Delete a group.
Sourcepub fn add_to_group(
&mut self,
group_id: GroupId,
clip_id: ClipId,
) -> EditResult<()>
pub fn add_to_group( &mut self, group_id: GroupId, clip_id: ClipId, ) -> EditResult<()>
Add a clip to a group.
Sourcepub fn remove_from_group(&mut self, clip_id: ClipId) -> Option<GroupId>
pub fn remove_from_group(&mut self, clip_id: ClipId) -> Option<GroupId>
Remove a clip from its group.
Sourcepub fn get_clip_group(&self, clip_id: ClipId) -> Option<&ClipGroup>
pub fn get_clip_group(&self, clip_id: ClipId) -> Option<&ClipGroup>
Get the group containing a clip.
Sourcepub fn get_group_mut(&mut self, group_id: GroupId) -> Option<&mut ClipGroup>
pub fn get_group_mut(&mut self, group_id: GroupId) -> Option<&mut ClipGroup>
Get mutable group by ID.
Sourcepub fn all_groups(&self) -> Vec<&ClipGroup>
pub fn all_groups(&self) -> Vec<&ClipGroup>
Get all groups.
Sourcepub fn is_grouped(&self, clip_id: ClipId) -> bool
pub fn is_grouped(&self, clip_id: ClipId) -> bool
Check if a clip is grouped.
Trait Implementations§
Source§impl Debug for GroupManager
impl Debug for GroupManager
Source§impl Default for GroupManager
impl Default for GroupManager
Source§fn default() -> GroupManager
fn default() -> GroupManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GroupManager
impl RefUnwindSafe for GroupManager
impl Send for GroupManager
impl Sync for GroupManager
impl Unpin for GroupManager
impl UnsafeUnpin for GroupManager
impl UnwindSafe for GroupManager
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