Enum druid_shell::MouseButton [−][src]
#[repr(u8)]
pub enum MouseButton {
None,
Left,
Right,
Middle,
X1,
X2,
}
Expand description
An indicator of which mouse button was pressed.
Variants
No mouse button.
Left mouse button.
Right mouse button.
Middle mouse button.
First X button.
Second X button.
Implementations
Returns true
if this is MouseButton::Left
.
Returns true
if this is MouseButton::Right
.
Returns true
if this is MouseButton::Middle
.
Returns true
if this is MouseButton::X1
.
Returns true
if this is MouseButton::X2
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more