[−][src]Struct beryllium::MouseButton
A bit bag of mouse buttons being pressed.
Methods
impl MouseButton
[src]
pub const Left: MouseButton
[src]
Left button.
pub const Middle: MouseButton
[src]
Middle button (mouse wheel).
pub const Right: MouseButton
[src]
Right button.
pub const X1: MouseButton
[src]
Extra button 1
pub const X2: MouseButton
[src]
Extra button 2
impl MouseButton
[src]
pub fn has_all(self, buttons: MouseButton) -> bool
[src]
Does the button value on the left contain the button value on the right?
Trait Implementations
impl Clone for MouseButton
[src]
fn clone(&self) -> MouseButton
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseButton
[src]
impl Debug for MouseButton
[src]
impl Eq for MouseButton
[src]
impl PartialEq<MouseButton> for MouseButton
[src]
fn eq(&self, other: &MouseButton) -> bool
[src]
fn ne(&self, other: &MouseButton) -> bool
[src]
impl StructuralEq for MouseButton
[src]
impl StructuralPartialEq for MouseButton
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,