pub struct ProgressTokens {
pub track: Color32,
pub fill: Color32,
pub height: f32,
pub line: f32,
pub ring: f32,
}Expand description
The installed kit’s progress values, for a widget drawing progress of
its own (read from progress-bar, progress-fill, progress-line
and progress-ring).
Fields§
§track: Color32The track under the fill (progress-bar.rest.fill).
fill: Color32The fill (progress-fill.rest.fill).
height: f32A bar’s thickness (progress-bar.height).
line: f32A thin line’s (progress-line.height).
ring: f32A ring’s and a spinner’s diameter (progress-ring.width).
Implementations§
Source§impl ProgressTokens
impl ProgressTokens
pub fn of(ctx: &Context) -> ProgressTokens
Trait Implementations§
Source§impl Clone for ProgressTokens
impl Clone for ProgressTokens
Source§fn clone(&self) -> ProgressTokens
fn clone(&self) -> ProgressTokens
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgressTokens
impl Debug for ProgressTokens
Source§impl PartialEq for ProgressTokens
impl PartialEq for ProgressTokens
impl StructuralPartialEq for ProgressTokens
Auto Trait Implementations§
impl Freeze for ProgressTokens
impl RefUnwindSafe for ProgressTokens
impl Send for ProgressTokens
impl Sync for ProgressTokens
impl Unpin for ProgressTokens
impl UnsafeUnpin for ProgressTokens
impl UnwindSafe for ProgressTokens
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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