pub enum MouseEventButton {
Main = 0,
Auxiliary = 1,
Secondary = 2,
Fourth = 3,
Fifth = 4,
}Expand description
The button property indicates which button was pressed on the mouse to trigger the event.
Variants§
Main = 0
Main button pressed, usually the left button or the un-initialized state
Auxiliary = 1
Auxiliary button pressed, usually the wheel button or the middle button (if present)
Secondary = 2
Secondary button pressed, usually the right button
Fourth = 3
Fourth button, typically the Browser Back button
Fifth = 4
Fifth button, typically the Browser Forward button
Trait Implementations§
Source§impl Clone for MouseEventButton
impl Clone for MouseEventButton
Source§fn clone(&self) -> MouseEventButton
fn clone(&self) -> MouseEventButton
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 MouseEventButton
impl Debug for MouseEventButton
Source§impl Default for MouseEventButton
impl Default for MouseEventButton
Source§fn default() -> MouseEventButton
fn default() -> MouseEventButton
Returns the “default value” for a type. Read more
Source§impl From<MouseEventButton> for MouseEventButtons
impl From<MouseEventButton> for MouseEventButtons
Source§fn from(value: MouseEventButton) -> Self
fn from(value: MouseEventButton) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseEventButton
impl PartialEq for MouseEventButton
impl Copy for MouseEventButton
impl Eq for MouseEventButton
impl StructuralPartialEq for MouseEventButton
Auto Trait Implementations§
impl Freeze for MouseEventButton
impl RefUnwindSafe for MouseEventButton
impl Send for MouseEventButton
impl Sync for MouseEventButton
impl Unpin for MouseEventButton
impl UnwindSafe for MouseEventButton
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