pub struct EditorState { /* private fields */ }Expand description
What is being edited, kept by the app so that it can be read and saved. All the edits the editor can make are methods here too, for scripts and tests.
Implementations§
Source§impl EditorState
impl EditorState
Sourcepub fn redo(&self)
pub fn redo(&self)
Puts back what Self::undo took.
Sourcepub fn position_ms(&self) -> u64
pub fn position_ms(&self) -> u64
Where the playhead is, in milliseconds of the timeline.
Sourcepub fn toggle_playing(&self)
pub fn toggle_playing(&self)
Plays from the playhead, or pauses.
Sourcepub fn delete_selected(&self)
pub fn delete_selected(&self)
Deletes what is selected: a clip takes its time with it.
Sourcepub fn select_clip(&self, index: usize)
pub fn select_clip(&self, index: usize)
Selects the clip at this place on the main track.
Sourcepub fn select_overlay(&self, id: u64)
pub fn select_overlay(&self, id: u64)
Selects an overlay.
Sourcepub fn add_overlay(&self, kind: OverlayKind) -> u64
pub fn add_overlay(&self, kind: OverlayKind) -> u64
Adds an effect at the playhead and selects it.
Sourcepub fn light_at_end(&self, region: Region, previous: Option<u64>) -> u64
pub fn light_at_end(&self, region: Region, previous: Option<u64>) -> u64
Lights region for the last seconds of the film, replacing what previous
lit, and says how to replace this one. It marks where a problem is.
Sourcepub fn add_chapter(&self, title: &str)
pub fn add_chapter(&self, title: &str)
Starts a chapter at the playhead.
Trait Implementations§
Source§impl Clone for EditorState
impl Clone for EditorState
Source§fn clone(&self) -> EditorState
fn clone(&self) -> EditorState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for EditorState
impl !Send for EditorState
impl !Sync for EditorState
impl !UnwindSafe for EditorState
impl Freeze for EditorState
impl Unpin for EditorState
impl UnsafeUnpin for EditorState
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