pub trait Timeline {
// Required method
fn timeline_raw(&self) -> *mut c_void;
// Provided methods
fn set_duration_secs(&mut self, seconds: f64) -> bool { ... }
fn set_duration_auto(&mut self) -> bool { ... }
fn set_duration_forever(&mut self) -> bool { ... }
fn duration_secs(&self) -> Option<f64> { ... }
fn set_begin_time_secs(&mut self, seconds: f64) -> bool { ... }
fn set_auto_reverse(&mut self, value: bool) -> bool { ... }
fn set_speed_ratio(&mut self, value: f32) -> bool { ... }
fn set_fill_behavior(&mut self, behavior: FillBehavior) -> bool { ... }
fn set_repeat_count(&mut self, count: f32) -> bool { ... }
fn set_repeat_duration_secs(&mut self, seconds: f64) -> bool { ... }
fn set_repeat_forever(&mut self) -> bool { ... }
}Expand description
Common Timeline knobs shared by every animation type (duration, repeat,
auto-reverse, …). Implemented through the object’s raw Timeline*.
Required Methods§
Sourcefn timeline_raw(&self) -> *mut c_void
fn timeline_raw(&self) -> *mut c_void
Borrowed Noesis::Timeline* for self.
Provided Methods§
Sourcefn set_duration_secs(&mut self, seconds: f64) -> bool
fn set_duration_secs(&mut self, seconds: f64) -> bool
Set the single-pass duration in seconds.
Sourcefn set_duration_auto(&mut self) -> bool
fn set_duration_auto(&mut self) -> bool
Set Duration="Automatic" (resolved from the content, e.g. key frames).
Sourcefn set_duration_forever(&mut self) -> bool
fn set_duration_forever(&mut self) -> bool
Set Duration="Forever".
Sourcefn duration_secs(&self) -> Option<f64>
fn duration_secs(&self) -> Option<f64>
Read the configured single-pass duration in seconds, or None if the
duration is Automatic / Forever (not a resolved TimeSpan).
Sourcefn set_begin_time_secs(&mut self, seconds: f64) -> bool
fn set_begin_time_secs(&mut self, seconds: f64) -> bool
Delay before the timeline begins, in seconds.
Sourcefn set_auto_reverse(&mut self, value: bool) -> bool
fn set_auto_reverse(&mut self, value: bool) -> bool
Play forwards then backwards each iteration when true.
Sourcefn set_speed_ratio(&mut self, value: f32) -> bool
fn set_speed_ratio(&mut self, value: f32) -> bool
Rate at which time progresses relative to the parent (default 1.0).
Sourcefn set_fill_behavior(&mut self, behavior: FillBehavior) -> bool
fn set_fill_behavior(&mut self, behavior: FillBehavior) -> bool
Behaviour once the active period ends (hold the end value or release it).
Sourcefn set_repeat_count(&mut self, count: f32) -> bool
fn set_repeat_count(&mut self, count: f32) -> bool
Repeat a fixed number of (possibly fractional) iterations.
Sourcefn set_repeat_duration_secs(&mut self, seconds: f64) -> bool
fn set_repeat_duration_secs(&mut self, seconds: f64) -> bool
Repeat for a fixed wall-clock duration, in seconds.
Sourcefn set_repeat_forever(&mut self) -> bool
fn set_repeat_forever(&mut self) -> bool
Repeat forever.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".