[−][src]Struct beryllium::MouseButtonState
Holds flags for the state of all mouse buttons at any given moment.
Methods
impl MouseButtonState
[src]
pub const fn left(self) -> bool
[src]
pub const fn with_left(self, bit: bool) -> Self
[src]
pub const fn middle(self) -> bool
[src]
pub const fn with_middle(self, bit: bool) -> Self
[src]
pub const fn right(self) -> bool
[src]
pub const fn with_right(self, bit: bool) -> Self
[src]
pub const fn x1(self) -> bool
[src]
pub const fn with_x1(self, bit: bool) -> Self
[src]
pub const fn x2(self) -> bool
[src]
pub const fn with_x2(self, bit: bool) -> Self
[src]
Trait Implementations
impl Copy for MouseButtonState
[src]
impl Clone for MouseButtonState
[src]
fn clone(&self) -> MouseButtonState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for MouseButtonState
[src]
Auto Trait Implementations
impl Send for MouseButtonState
impl Sync for MouseButtonState
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,