pub struct Sequence {Show 15 fields
pub id: u64,
pub name: String,
pub duration: f64,
pub frame_rate: f64,
pub tracks: Vec<SequenceTrack>,
pub camera_shots: Vec<CameraShot>,
pub markers: Vec<(f64, String)>,
pub loop_mode: LoopMode,
pub current_time: f64,
pub is_playing: bool,
pub playback_speed: f64,
pub gravity: bool,
pub next_track_id: u32,
pub next_clip_id: u32,
pub next_shot_id: u32,
}Fields§
§id: u64§name: String§duration: f64§frame_rate: f64§tracks: Vec<SequenceTrack>§camera_shots: Vec<CameraShot>§markers: Vec<(f64, String)>§loop_mode: LoopMode§current_time: f64§is_playing: bool§playback_speed: f64§gravity: bool§next_track_id: u32§next_clip_id: u32§next_shot_id: u32Implementations§
Source§impl Sequence
impl Sequence
pub fn new(name: impl Into<String>, duration_secs: f64, fps: f64) -> Self
pub fn frame_count(&self) -> u64
pub fn frame_to_time(&self, frame: u64) -> f64
pub fn time_to_frame(&self, t: f64) -> u64
pub fn add_track(&mut self, track: SequenceTrack) -> u32
pub fn add_shot(&mut self, shot: CameraShot) -> u32
pub fn add_marker(&mut self, time: f64, label: impl Into<String>)
pub fn update(&mut self, dt: f64)
pub fn play(&mut self)
pub fn pause(&mut self)
pub fn stop(&mut self)
pub fn seek_to_frame(&mut self, frame: u64)
pub fn current_camera_shot(&self) -> Option<&CameraShot>
pub fn current_frame(&self) -> u64
pub fn active_markers_at(&self, t: f64, window: f64) -> Vec<&str>
pub fn populate_demo(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl UnwindSafe for Sequence
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.