pub struct MockAnimationState {
pub resource_id: AnimationResourceId,
pub current_frame: usize,
pub completed_loops: u32,
pub playing: bool,
pub paused: bool,
pub next_deadline: Option<Duration>,
pub remaining_in_frame: Option<Duration>,
pub finished: bool,
}Expand description
Playback state for an animated image widget in MockBackend.
Fields§
§resource_id: AnimationResourceIdThe animation resource being played.
current_frame: usizeCurrent 0-based frame index in AnimationData.frames.
completed_loops: u32Number of completed animation loop cycles.
playing: boolWhether the animation is currently playing (vs stopped).
paused: boolWhether playback is paused due to the widget being hidden.
next_deadline: Option<Duration>Virtual-clock deadline when the current frame ends.
remaining_in_frame: Option<Duration>Remaining display time for the current frame when paused.
finished: boolWhether a finite-loop animation has finished all loops.
Trait Implementations§
Source§impl Clone for MockAnimationState
impl Clone for MockAnimationState
Source§impl Debug for MockAnimationState
impl Debug for MockAnimationState
impl Eq for MockAnimationState
Source§impl PartialEq for MockAnimationState
impl PartialEq for MockAnimationState
impl StructuralPartialEq for MockAnimationState
Auto Trait Implementations§
impl Forget for MockAnimationState
impl Freeze for MockAnimationState
impl Move for MockAnimationState
impl RefUnwindSafe for MockAnimationState
impl Send for MockAnimationState
impl Sync for MockAnimationState
impl Unpin for MockAnimationState
impl UnsafeUnpin for MockAnimationState
impl UnwindSafe for MockAnimationState
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