#[non_exhaustive]pub struct ButtonMetrics {
pub min_width: Option<f32>,
pub min_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
pub icon_spacing: Option<f32>,
}Expand description
Button sizing and spacing metrics.
Defines minimum dimensions, padding, and icon spacing for push buttons. 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.min_width: Option<f32>Minimum button width in logical pixels.
min_height: Option<f32>Minimum button height in logical pixels.
padding_horizontal: Option<f32>Horizontal padding inside the button.
padding_vertical: Option<f32>Vertical padding inside the button.
icon_spacing: Option<f32>Spacing between icon and label within the button.
Implementations§
Source§impl ButtonMetrics
impl ButtonMetrics
Trait Implementations§
Source§impl Clone for ButtonMetrics
impl Clone for ButtonMetrics
Source§fn clone(&self) -> ButtonMetrics
fn clone(&self) -> ButtonMetrics
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 ButtonMetrics
impl Debug for ButtonMetrics
Source§impl Default for ButtonMetrics
impl Default for ButtonMetrics
Source§fn default() -> ButtonMetrics
fn default() -> ButtonMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ButtonMetricswhere
ButtonMetrics: Default,
impl<'de> Deserialize<'de> for ButtonMetricswhere
ButtonMetrics: 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 ButtonMetrics
impl PartialEq for ButtonMetrics
Source§impl Serialize for ButtonMetrics
impl Serialize for ButtonMetrics
impl StructuralPartialEq for ButtonMetrics
Auto Trait Implementations§
impl Freeze for ButtonMetrics
impl RefUnwindSafe for ButtonMetrics
impl Send for ButtonMetrics
impl Sync for ButtonMetrics
impl Unpin for ButtonMetrics
impl UnsafeUnpin for ButtonMetrics
impl UnwindSafe for ButtonMetrics
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