pub struct TimelineItem { /* private fields */ }Expand description
One block on a TimelineTrack.
Implementations§
Source§impl TimelineItem
impl TimelineItem
Sourcepub fn new(
id: u64,
start_ms: u64,
duration_ms: u64,
label: impl Into<String>,
) -> TimelineItem
pub fn new( id: u64, start_ms: u64, duration_ms: u64, label: impl Into<String>, ) -> TimelineItem
A block known to the app as id, from start_ms for duration_ms.
Sourcepub fn tone(self, tone: Tone) -> TimelineItem
pub fn tone(self, tone: Tone) -> TimelineItem
Its color.
Sourcepub fn selected(self, selected: bool) -> TimelineItem
pub fn selected(self, selected: bool) -> TimelineItem
Marks it as the selected one.
Sourcepub fn movable(self) -> TimelineItem
pub fn movable(self) -> TimelineItem
It can be dragged along its track.
Sourcepub fn trimmable(self) -> TimelineItem
pub fn trimmable(self) -> TimelineItem
Its ends can be dragged.
Sourcepub fn leading(self, view: impl View + 'static) -> TimelineItem
pub fn leading(self, view: impl View + 'static) -> TimelineItem
Something before its label, such as a thumbnail.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TimelineItem
impl !Send for TimelineItem
impl !Sync for TimelineItem
impl !UnwindSafe for TimelineItem
impl Freeze for TimelineItem
impl Unpin for TimelineItem
impl UnsafeUnpin for TimelineItem
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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