pub struct ProgressBarTheme {
pub fill: Option<Rgba>,
pub track: Option<Rgba>,
pub height: Option<f32>,
pub min_width: Option<f32>,
pub radius: Option<f32>,
}Expand description
Progress bar colors and geometry.
Fields§
§fill: Option<Rgba>Filled progress bar color.
track: Option<Rgba>Background track color.
height: Option<f32>Bar height in logical pixels.
min_width: Option<f32>Minimum bar width in logical pixels.
radius: Option<f32>Corner radius in logical pixels.
Implementations§
Source§impl ProgressBarTheme
impl ProgressBarTheme
Sourcepub const FIELD_NAMES: &[&str]
pub const FIELD_NAMES: &[&str]
All serialized field names for this widget theme, for TOML linting.
Source§impl ProgressBarTheme
impl ProgressBarTheme
Trait Implementations§
Source§impl Clone for ProgressBarTheme
impl Clone for ProgressBarTheme
Source§fn clone(&self) -> ProgressBarTheme
fn clone(&self) -> ProgressBarTheme
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 ProgressBarTheme
impl Debug for ProgressBarTheme
Source§impl Default for ProgressBarTheme
impl Default for ProgressBarTheme
Source§fn default() -> ProgressBarTheme
fn default() -> ProgressBarTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProgressBarThemewhere
ProgressBarTheme: Default,
impl<'de> Deserialize<'de> for ProgressBarThemewhere
ProgressBarTheme: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProgressBarTheme
impl PartialEq for ProgressBarTheme
Source§impl Serialize for ProgressBarTheme
impl Serialize for ProgressBarTheme
impl StructuralPartialEq for ProgressBarTheme
Auto Trait Implementations§
impl Freeze for ProgressBarTheme
impl RefUnwindSafe for ProgressBarTheme
impl Send for ProgressBarTheme
impl Sync for ProgressBarTheme
impl Unpin for ProgressBarTheme
impl UnsafeUnpin for ProgressBarTheme
impl UnwindSafe for ProgressBarTheme
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