pub struct ProgressIndicatorScope { /* private fields */ }Expand description
A ProgressIndicator and its builder.
Implementations§
Source§impl ProgressIndicatorScope
impl ProgressIndicatorScope
pub fn determinate(self, determinate: bool) -> Self
Sourcepub fn color_if(self, paint: Option<Paint>) -> Self
pub fn color_if(self, paint: Option<Paint>) -> Self
The same, when there may be no colour of its own.
Sourcepub fn indicator_color(self, paint: Paint) -> Self
pub fn indicator_color(self, paint: Paint) -> Self
The indicator’s colour.
Sourcepub fn track_color(self, paint: Paint) -> Self
pub fn track_color(self, paint: Paint) -> Self
The track’s colour.
Sourcepub fn track_color_if(self, paint: Option<Paint>) -> Self
pub fn track_color_if(self, paint: Option<Paint>) -> Self
The same, when there may be no track colour of its own.
Source§impl ProgressIndicatorScope
impl ProgressIndicatorScope
Sourcepub fn on_motion_finished(
self,
handler: impl FnMut(MotionFinished) + 'static,
) -> Self
pub fn on_motion_finished( self, handler: impl FnMut(MotionFinished) + 'static, ) -> Self
Runs once when this node’s size motion comes to rest, with the size it settled
at in dp. The node needs Modifier::motion for its size to move; without it
nothing is reported. A run interrupted by a newer size is not reported, only
the one that settles, and under reduced motion it arrives in the frame the
size changes in.
Trait Implementations§
Source§impl Drop for ProgressIndicatorScope
impl Drop for ProgressIndicatorScope
Auto Trait Implementations§
impl !RefUnwindSafe for ProgressIndicatorScope
impl !Send for ProgressIndicatorScope
impl !Sync for ProgressIndicatorScope
impl !UnwindSafe for ProgressIndicatorScope
impl Forget for ProgressIndicatorScope
impl Freeze for ProgressIndicatorScope
impl Move for ProgressIndicatorScope
impl Unpin for ProgressIndicatorScope
impl UnsafeUnpin for ProgressIndicatorScope
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