pub struct Interaction {
pub min_target: f32,
pub focus_ring_width: f32,
pub focus_ring_offset: f32,
pub reduced_motion: bool,
}Expand description
Interaction sizing and motion preferences that components must respect.
Fields§
§min_target: f32Minimum control height for pointer input.
focus_ring_width: f32Width of the keyboard focus ring.
focus_ring_offset: f32Gap between a control and its focus ring.
reduced_motion: boolWhen true, components skip non-essential motion.
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
Source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Interaction
Source§impl Debug for Interaction
impl Debug for Interaction
Source§impl PartialEq for Interaction
impl PartialEq for Interaction
impl StructuralPartialEq for Interaction
Auto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnsafeUnpin for Interaction
impl UnwindSafe for Interaction
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