pub enum MouseButton {
Left,
Right,
Middle,
Unknown,
}Expand description
The variants of mouse buttons available on mouse-supporting platforms.
Variants§
Left
Primary mouse button.
Right
Secondary mouse button.
Middle
Middle mouse button.
Unknown
Button not identified by the chassis.
Trait Implementations§
Source§impl Clone for MouseButton
impl Clone for MouseButton
Source§impl From<MouseButtonMessage> for MouseButton
impl From<MouseButtonMessage> for MouseButton
Source§fn from(value: MouseButtonMessage) -> Self
fn from(value: MouseButtonMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseButton
impl PartialEq for MouseButton
impl StructuralPartialEq for MouseButton
Auto Trait Implementations§
impl Freeze for MouseButton
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnsafeUnpin for MouseButton
impl UnwindSafe for MouseButton
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.