Skip to main content

TimelineValue

Trait TimelineValue 

Source
pub trait TimelineValue {
    // Required methods
    fn shift(&mut self, delta: i64);
    fn keep_window(&mut self, window: (i64, i64));
    fn via_clip(&self) -> Option<&ClipId>;
    fn via_clip_mut(&mut self) -> Option<&mut ClipId>;
}
Expand description

A value whose keyframes are in timeline time.

Required Methods§

Source

fn shift(&mut self, delta: i64)

Moves every keyframe by delta ticks.

Source

fn keep_window(&mut self, window: (i64, i64))

Keeps the keyframes that decide values inside window (ticks, end exclusive): those inside it and the nearest one on each side.

Source

fn via_clip(&self) -> Option<&ClipId>

The clip a data binding reads through, if any.

Source

fn via_clip_mut(&mut self) -> Option<&mut ClipId>

Self::via_clip, to point it at another clip.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§