pub struct AlwaysStoppedAnimation<T> {
pub value: T,
}Expand description
An animation that is always stopped at a given value.
The status is always AnimationStatus::Forward.
Fields§
§value: TThe value at which this animation is stopped.
Since the value and status of an AlwaysStoppedAnimation can never
change, the listeners can never be called. It is therefore safe to
reuse one in multiple places.
Implementations§
Source§impl<T> AlwaysStoppedAnimation<T>
impl<T> AlwaysStoppedAnimation<T>
Sourcepub const fn new(value: T) -> AlwaysStoppedAnimation<T>
pub const fn new(value: T) -> AlwaysStoppedAnimation<T>
Creates an AlwaysStoppedAnimation with the given value.
Trait Implementations§
Source§impl<T> Animation<T> for AlwaysStoppedAnimation<T>where
T: Clone + 'static,
impl<T> Animation<T> for AlwaysStoppedAnimation<T>where
T: Clone + 'static,
Source§fn add_listener(
self: Handle<AlwaysStoppedAnimation<T>>,
_app: &mut App,
_listener: Listener,
)
fn add_listener( self: Handle<AlwaysStoppedAnimation<T>>, _app: &mut App, _listener: Listener, )
Calls the listener every time the value of the animation changes. Read more
Source§fn remove_listener(
self: Handle<AlwaysStoppedAnimation<T>>,
_app: &mut App,
_listener: &Listener,
)
fn remove_listener( self: Handle<AlwaysStoppedAnimation<T>>, _app: &mut App, _listener: &Listener, )
Stop calling the listener every time the value of the animation
changes. Read more
Source§fn add_status_listener(
self: Handle<AlwaysStoppedAnimation<T>>,
_app: &mut App,
_listener: AnimationStatusListener,
)
fn add_status_listener( self: Handle<AlwaysStoppedAnimation<T>>, _app: &mut App, _listener: AnimationStatusListener, )
Calls listener every time the status of the animation changes. Read more
Source§fn remove_status_listener(
self: Handle<AlwaysStoppedAnimation<T>>,
_app: &mut App,
_listener: &AnimationStatusListener,
)
fn remove_status_listener( self: Handle<AlwaysStoppedAnimation<T>>, _app: &mut App, _listener: &AnimationStatusListener, )
Stops calling the listener every time the status of the animation
changes. Read more
Source§fn status(
self: Handle<AlwaysStoppedAnimation<T>>,
_app: &App,
) -> AnimationStatus
fn status( self: Handle<AlwaysStoppedAnimation<T>>, _app: &App, ) -> AnimationStatus
The current status of this animation.
Source§fn value(self: Handle<AlwaysStoppedAnimation<T>>, app: &App) -> T
fn value(self: Handle<AlwaysStoppedAnimation<T>>, app: &App) -> T
The current value of the animation. Read more
Source§fn is_dismissed(self: Handle<Self>, app: &App) -> bool
fn is_dismissed(self: Handle<Self>, app: &App) -> bool
Whether this animation is stopped at the beginning.
Source§fn is_completed(self: Handle<Self>, app: &App) -> bool
fn is_completed(self: Handle<Self>, app: &App) -> bool
Whether this animation is stopped at the end.
Source§fn is_animating(self: Handle<Self>, app: &App) -> bool
fn is_animating(self: Handle<Self>, app: &App) -> bool
Whether this animation is running in either direction.
Source§fn is_forward_or_completed(self: Handle<Self>, app: &App) -> bool
fn is_forward_or_completed(self: Handle<Self>, app: &App) -> bool
Whether the current aim of this animation is toward completion.
Source§fn to_string_details(self: Handle<Self>, app: &App) -> String
fn to_string_details(self: Handle<Self>, app: &App) -> String
Dart’s
Animation.toStringDetails: the status as its arrow.Source§fn to_string(self: Handle<Self>, app: &App) -> String
fn to_string(self: Handle<Self>, app: &App) -> String
Dart’s
Animation.toString: the identity and toStringDetails.Source§fn as_animation(self: Handle<Self>) -> AnyAnimation<T>
fn as_animation(self: Handle<Self>) -> AnyAnimation<T>
This animation as the erased
AnyAnimation<T> — what to pass where
a Dart API takes an Animation<T>. Read moreAuto Trait Implementations§
impl<T> Forget for AlwaysStoppedAnimation<T>
impl<T> Freeze for AlwaysStoppedAnimation<T>where
T: Freeze,
impl<T> Move for AlwaysStoppedAnimation<T>
impl<T> RefUnwindSafe for AlwaysStoppedAnimation<T>where
T: RefUnwindSafe,
impl<T> Send for AlwaysStoppedAnimation<T>where
T: Send,
impl<T> Sync for AlwaysStoppedAnimation<T>where
T: Sync,
impl<T> Unpin for AlwaysStoppedAnimation<T>where
T: Unpin,
impl<T> UnsafeUnpin for AlwaysStoppedAnimation<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AlwaysStoppedAnimation<T>where
T: UnwindSafe,
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