pub enum Button {
Main,
Auxiliary,
Secondary,
Fourth,
Fifth,
}Expand description
An enum representing a mouse button
Variants§
Main
Main button, usually the left button or the un-initialized state
Auxiliary
Auxiliary button, usually the wheel button or the middle button (if present)
Secondary
Secondary button, usually the right button
Fourth
Fourth button, typically the Browser Back button
Fifth
Fifth button, typically the Browser Forward button
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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