pub enum MouseButton {
Left,
Right,
Middle,
Back,
Forward,
}Expand description
A mouse button, as GPUI’s MouseButton (TS: "left", "right",
"middle", "back", "forward").
Variants§
Left
The primary button.
Right
The secondary button.
Middle
The middle button (the wheel).
Back
The back button (the DOM’s button 3).
Forward
The forward button (the DOM’s button 4).
Implementations§
Trait Implementations§
Source§impl Clone for MouseButton
impl Clone for MouseButton
impl Copy for MouseButton
Source§impl Debug for MouseButton
impl Debug for MouseButton
impl Eq for MouseButton
Source§impl Hash for MouseButton
impl Hash for MouseButton
Source§impl PartialEq for MouseButton
impl PartialEq for MouseButton
impl StructuralPartialEq for MouseButton
Auto Trait Implementations§
impl Forget for MouseButton
impl Freeze for MouseButton
impl Move 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