pub struct MouseButtonState {
pub left_down: bool,
pub right_down: bool,
pub middle_down: bool,
}Expand description
Mouse button state for drag tracking
Fields§
§left_down: bool§right_down: bool§middle_down: boolImplementations§
Trait Implementations§
Source§impl Clone for MouseButtonState
impl Clone for MouseButtonState
Source§fn clone(&self) -> MouseButtonState
fn clone(&self) -> MouseButtonState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MouseButtonState
impl Debug for MouseButtonState
Source§impl From<&MouseState> for MouseButtonState
impl From<&MouseState> for MouseButtonState
Source§fn from(s: &MouseState) -> Self
fn from(s: &MouseState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseButtonState
impl PartialEq for MouseButtonState
Source§fn eq(&self, other: &MouseButtonState) -> bool
fn eq(&self, other: &MouseButtonState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MouseButtonState
impl Eq for MouseButtonState
impl StructuralPartialEq for MouseButtonState
Auto Trait Implementations§
impl Freeze for MouseButtonState
impl RefUnwindSafe for MouseButtonState
impl Send for MouseButtonState
impl Sync for MouseButtonState
impl Unpin for MouseButtonState
impl UnsafeUnpin for MouseButtonState
impl UnwindSafe for MouseButtonState
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