pub enum InteractionState {
Normal,
Hovered,
Focused,
Active,
Disabled,
FocusedHovered,
}Expand description
The interaction state of a widget.
Variants§
Normal
Default state — no user interaction.
Hovered
Mouse cursor is over the widget.
Focused
Widget has keyboard focus.
Active
Widget is being pressed/activated.
Disabled
Widget is non-interactive.
FocusedHovered
Widget has both focus and hover.
Trait Implementations§
Source§impl Clone for InteractionState
impl Clone for InteractionState
Source§fn clone(&self) -> InteractionState
fn clone(&self) -> InteractionState
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 InteractionState
impl Debug for InteractionState
Source§impl Hash for InteractionState
impl Hash for InteractionState
Source§impl PartialEq for InteractionState
impl PartialEq for InteractionState
impl Copy for InteractionState
impl Eq for InteractionState
impl StructuralPartialEq for InteractionState
Auto Trait Implementations§
impl Freeze for InteractionState
impl RefUnwindSafe for InteractionState
impl Send for InteractionState
impl Sync for InteractionState
impl Unpin for InteractionState
impl UnsafeUnpin for InteractionState
impl UnwindSafe for InteractionState
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