If the animation is playing, paused or has been completed, restarts it from
the beginning. This allows to easily play an animation regardless of whether
it's already playing or not.
The animation will be automatically skipped if propertyAnimation:widget is
unmapped, or if propertyGtk.Settings:gtk-enable-animations is FALSE.
As such, it's not guaranteed that the animation will actually run. For
example, when using funcGLib.idle_add and starting an animation
immediately afterwards, it's entirely possible that the idle callback will
run after the animation has already finished, and not while it's playing.
Starts the animation for self.
If the animation is playing, paused or has been completed, restarts it from the beginning. This allows to easily play an animation regardless of whether it's already playing or not.
Sets propertyAnimation:state to adw.types.AnimationState.Playing.
The animation will be automatically skipped if propertyAnimation:widget is unmapped, or if propertyGtk.Settings:gtk-enable-animations is FALSE.
As such, it's not guaranteed that the animation will actually run. For example, when using funcGLib.idle_add and starting an animation immediately afterwards, it's entirely possible that the idle callback will run after the animation has already finished, and not while it's playing.