pub struct CircularProgressPlayback { /* private fields */ }Expand description
Caller-owned circular playback that survives virtual unmounting.
A new handle starts on its first sample (normally the first mounted render). Clones share one logical indicator’s start time, stopped flag and last frame; no window, pointer state or scheduled callbacks are retained. Use within one app, and create a new handle to restart a stopped playback.
Reduced motion stops an existing playback permanently after one final sample.
An owner whose indicator is unmounted must call Self::observe_reduced_motion
when the preference changes, so an offscreen enable/disable is not missed.
Implementations§
Source§impl CircularProgressPlayback
impl CircularProgressPlayback
Sourcepub fn sample(&self, cx: &App) -> CircularProgressFrame
pub fn sample(&self, cx: &App) -> CircularProgressFrame
Sample the reference clock without requesting a frame. Calling this for the first time starts playback, even when no drawing element is mounted.
Sourcepub fn observe_reduced_motion(&self, cx: &App)
pub fn observe_reduced_motion(&self, cx: &App)
Observe a reduced-motion preference change without starting an unused indicator or requesting frames. Call after updating the app preference, including while unmounted. Disabling reduced motion never restarts it.
Trait Implementations§
Source§impl Clone for CircularProgressPlayback
impl Clone for CircularProgressPlayback
Source§fn clone(&self) -> CircularProgressPlayback
fn clone(&self) -> CircularProgressPlayback
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CircularProgressPlayback
impl Default for CircularProgressPlayback
Source§fn default() -> CircularProgressPlayback
fn default() -> CircularProgressPlayback
Auto Trait Implementations§
impl !RefUnwindSafe for CircularProgressPlayback
impl !Send for CircularProgressPlayback
impl !Sync for CircularProgressPlayback
impl !UnwindSafe for CircularProgressPlayback
impl Freeze for CircularProgressPlayback
impl Unpin for CircularProgressPlayback
impl UnsafeUnpin for CircularProgressPlayback
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().