pub struct EditGroup {
pub id: GroupId,
pub name: String,
pub members: HashSet<u64>,
pub behavior: GroupBehavior,
pub locked: bool,
pub color: Option<u32>,
}Expand description
A group of clips that can be edited as a unit.
Fields§
§id: GroupIdUnique identifier for this group.
name: StringHuman-readable name for the group.
members: HashSet<u64>Clip IDs that belong to this group.
behavior: GroupBehaviorHow edits propagate within the group.
locked: boolWhether the group is currently locked against edits.
color: Option<u32>Optional color label for UI display (RGBA).
Implementations§
Source§impl EditGroup
impl EditGroup
Sourcepub fn new(id: GroupId, name: impl Into<String>) -> Self
pub fn new(id: GroupId, name: impl Into<String>) -> Self
Create a new group with the given id and name.
Sourcepub fn with_behavior(self, behavior: GroupBehavior) -> Self
pub fn with_behavior(self, behavior: GroupBehavior) -> Self
Builder: set the group behavior.
Sourcepub fn with_color(self, rgba: u32) -> Self
pub fn with_color(self, rgba: u32) -> Self
Builder: set color label.
Sourcepub fn add_member(&mut self, clip_id: u64) -> bool
pub fn add_member(&mut self, clip_id: u64) -> bool
Add a clip ID to this group.
Sourcepub fn remove_member(&mut self, clip_id: u64) -> bool
pub fn remove_member(&mut self, clip_id: u64) -> bool
Remove a clip ID from this group.
Sourcepub fn member_count(&self) -> usize
pub fn member_count(&self) -> usize
Returns the number of clips in the group.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditGroup
impl RefUnwindSafe for EditGroup
impl Send for EditGroup
impl Sync for EditGroup
impl Unpin for EditGroup
impl UnsafeUnpin for EditGroup
impl UnwindSafe for EditGroup
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