SceneTransition

Trait SceneTransition 

Source
pub trait SceneTransition:
    Process
    + Progress
    + Viewable {
    // Required method
    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§

Source

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.

Implementors§