pub enum InteractionButton {
Primary,
Secondary,
Auxiliary,
Other(u16),
}Expand description
Pointer button snapshot for button-aware interaction events.
Variants§
Primary
Primary / left button.
Secondary
Secondary / right button.
Auxiliary
Auxiliary / middle button.
Other(u16)
Any other host-defined button index.
Trait Implementations§
Source§impl Clone for InteractionButton
impl Clone for InteractionButton
Source§fn clone(&self) -> InteractionButton
fn clone(&self) -> InteractionButton
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 InteractionButton
impl Debug for InteractionButton
Source§impl Hash for InteractionButton
impl Hash for InteractionButton
Source§impl PartialEq for InteractionButton
impl PartialEq for InteractionButton
impl Copy for InteractionButton
impl Eq for InteractionButton
impl StructuralPartialEq for InteractionButton
Auto Trait Implementations§
impl Freeze for InteractionButton
impl RefUnwindSafe for InteractionButton
impl Send for InteractionButton
impl Sync for InteractionButton
impl Unpin for InteractionButton
impl UnsafeUnpin for InteractionButton
impl UnwindSafe for InteractionButton
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