#[non_exhaustive]pub struct SliderMetrics {
pub track_height: Option<f32>,
pub thumb_size: Option<f32>,
pub tick_length: Option<f32>,
}Expand description
Slider/range control metrics.
Defines track groove thickness, thumb size, and tick mark length. All values are in logical pixels.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.track_height: Option<f32>Track groove thickness in logical pixels.
thumb_size: Option<f32>Control thumb diameter/width in logical pixels.
tick_length: Option<f32>Tick mark length in logical pixels.
Implementations§
Source§impl SliderMetrics
impl SliderMetrics
Trait Implementations§
Source§impl Clone for SliderMetrics
impl Clone for SliderMetrics
Source§fn clone(&self) -> SliderMetrics
fn clone(&self) -> SliderMetrics
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 SliderMetrics
impl Debug for SliderMetrics
Source§impl Default for SliderMetrics
impl Default for SliderMetrics
Source§fn default() -> SliderMetrics
fn default() -> SliderMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SliderMetricswhere
SliderMetrics: Default,
impl<'de> Deserialize<'de> for SliderMetricswhere
SliderMetrics: 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 SliderMetrics
impl PartialEq for SliderMetrics
Source§impl Serialize for SliderMetrics
impl Serialize for SliderMetrics
impl StructuralPartialEq for SliderMetrics
Auto Trait Implementations§
impl Freeze for SliderMetrics
impl RefUnwindSafe for SliderMetrics
impl Send for SliderMetrics
impl Sync for SliderMetrics
impl Unpin for SliderMetrics
impl UnsafeUnpin for SliderMetrics
impl UnwindSafe for SliderMetrics
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