pub enum Interaction {
None,
Hovered,
Pressed,
}Expand description
A widget’s visual pointer interaction state.
Variants§
None
Neither hovered nor pressed.
Hovered
The pointer is over it.
Pressed
The pointer is pressed on this widget.
This is the flag: true from the first frame the finger is down. What a paint
wants is almost always Status::press_progress, the same thing as a fade.
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
impl Copy for Interaction
Source§impl Debug for Interaction
impl Debug for Interaction
Source§impl Default for Interaction
impl Default for Interaction
impl Eq 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