pub struct Animation { /* private fields */ }
Implementations§
Source§impl Animation
impl Animation
Sourcepub fn mode(&mut self, mode: Mode) -> &mut Self
pub fn mode(&mut self, mode: Mode) -> &mut Self
Describes how a new animate call interacts with currently-running animations. If immediate
, current animations are interrupted and the new animation is started. If next
, the current frame is allowed to complete, after which the new animation is started. If afterall
all existing frames are animated to completion before the new animation is started.
default: afterall
Sourcepub fn direction(&mut self, direction: Direction) -> &mut Self
pub fn direction(&mut self, direction: Direction) -> &mut Self
The direction in which to play the frames triggered by the animation call
default: forward
Sourcepub fn fromcurrent(&mut self, fromcurrent: bool) -> &mut Self
pub fn fromcurrent(&mut self, fromcurrent: bool) -> &mut Self
Play frames starting at the current frame instead of the beginning.
default: false
pub fn frame(&mut self) -> &mut Frame
pub fn transition(&mut self) -> &mut Transition
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
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