pub struct Metrics {
pub radius_selector: i32,
pub radius_field: i32,
pub radius_box: i32,
pub size_selector: i32,
pub size_field: i32,
pub border: i32,
}Expand description
Geometry tokens, in logical pixels at scale factor 1.0.
Fields§
§radius_selector: i32Corner radius for Radius::Selector.
radius_field: i32Corner radius for Radius::Field.
radius_box: i32Corner radius for Radius::Box.
size_selector: i32Edge length of a checkbox or radio.
size_field: i32Height of a button or input.
border: i32Default border thickness.
Implementations§
Source§impl Metrics
impl Metrics
Sourcepub const TOUCH: Self
pub const TOUCH: Self
Touch defaults, sized for a finger on a panel rather than a cursor.
44 logical pixels is the smallest target most guidance considers reliable, and an industrial panel is often operated with gloves on.
Trait Implementations§
impl Copy for Metrics
impl Eq for Metrics
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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