pub struct Clip {
pub time: (f64, f64),
pub motion: (f64, f64),
pub params: Vec<Param>,
pub curves: Vec<Curve>,
}Expand description
The typed content of a track mixer.
Fields§
§time: (f64, f64)TimeClip Start..End in timeline ticks.
motion: (f64, f64)MotionClip Start..End in motion ticks.
params: Vec<Param>Param nodes of AnimInfo: values without keys.
curves: Vec<Curve>FCurve nodes of AnimInfo.
Implementations§
Source§impl Clip
impl Clip
Sourcepub fn from_document(document: &Document) -> Result<Self>
pub fn from_document(document: &Document) -> Result<Self>
Reads the clip of a track mixer document.
Sourcepub fn time_at(&self, m: f64) -> f64
pub fn time_at(&self, m: f64) -> f64
Timeline ticks at motion ticks m (inverse of Clip::motion_at).
Trait Implementations§
impl StructuralPartialEq for Clip
Auto Trait Implementations§
impl Freeze for Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnsafeUnpin for Clip
impl UnwindSafe for Clip
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