pub enum Button {
Left,
Middle,
Right,
Back,
Forward,
ScrollUp,
ScrollDown,
ScrollLeft,
ScrollRight,
}
Expand description
Represents a mouse button and is used in e.g
Mouse::button
.
Variants§
Left
Left mouse button
Middle
Middle mouse button
Right
Right mouse button
Back
4th mouse button. Typically performs the same function as Browser_Back
Forward
5th mouse button. Typically performs the same function as Browser_Forward
ScrollUp
Scroll up button. It is better to use the
Mouse::scroll
method to scroll.
ScrollDown
Scroll down button. It is better to use the
Mouse::scroll
method to scroll.
ScrollLeft
Scroll left button. It is better to use the
Mouse::scroll
method to scroll.
ScrollRight
Scroll right button. It is better to use the
Mouse::scroll
method to scroll.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Button
impl<'de> Deserialize<'de> for Button
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Button
impl PartialEq for Button
impl Copy for Button
impl Eq for Button
impl StructuralEq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
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