pub enum PointerButton {
Primary,
Secondary,
Middle,
}Expand description
One of the pointer buttons an event can refer to.
Variants§
Primary
The main button, the left button on a right-handed mouse.
Secondary
The context menu button, the right button on a right-handed mouse.
Middle
The middle button.
Trait Implementations§
Source§impl Clone for PointerButton
impl Clone for PointerButton
impl Copy for PointerButton
Source§impl Debug for PointerButton
impl Debug for PointerButton
impl Eq for PointerButton
Source§impl PartialEq for PointerButton
impl PartialEq for PointerButton
impl StructuralPartialEq for PointerButton
Auto Trait Implementations§
impl Forget for PointerButton
impl Freeze for PointerButton
impl Move for PointerButton
impl RefUnwindSafe for PointerButton
impl Send for PointerButton
impl Sync for PointerButton
impl Unpin for PointerButton
impl UnsafeUnpin for PointerButton
impl UnwindSafe for PointerButton
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