pub struct Manager(/* private fields */);Expand description
Coordinates variables, transitions, and storyboards.
Implementations§
Source§impl Manager
impl Manager
Sourcepub fn create_variable(&self, initial_value: f64) -> Result<Variable>
pub fn create_variable(&self, initial_value: f64) -> Result<Variable>
Creates a new animation variable with the given initial value.
Sourcepub fn create_storyboard(&self) -> Result<Storyboard>
pub fn create_storyboard(&self) -> Result<Storyboard>
Creates a new storyboard for sequencing transitions.
Sourcepub fn update(&self, time: f64) -> Result<()>
pub fn update(&self, time: f64) -> Result<()>
Advances the animation manager to the specified time in seconds.
Sourcepub fn schedule_transition(
&self,
variable: &Variable,
transition: &Transition,
time: f64,
) -> Result<()>
pub fn schedule_transition( &self, variable: &Variable, transition: &Transition, time: f64, ) -> Result<()>
Schedules a transition on a variable, starting at the specified time in seconds.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Manager
impl !Sync for Manager
impl Freeze for Manager
impl RefUnwindSafe for Manager
impl Unpin for Manager
impl UnsafeUnpin for Manager
impl UnwindSafe for Manager
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