Trait components::prelude::SceneTransition
[−]pub trait SceneTransition: Process + Progress + Viewable {
fn get_duration(&self, as_time: Option<bool>) -> i32;
}
Expand description
The SceneTransition should be implemented by objects intended to display visual transitions during scene changes.
Required Methods
fn get_duration(&self, as_time: Option<bool>) -> i32
fn get_duration(&self, as_time: Option<bool>) -> i32
The time over which the transition occurs.
Arguments
as_time
- If true returns duration in milliseconds, else updates. (optional, default: true)
Return: The time over which the transition occurs.