Struct sdl2::mouse::MouseState
[−]
[src]
pub struct MouseState { // some fields omitted }
Methods
impl MouseState
[src]
fn button(&self, button: Mouse) -> bool
Tests if a mouse button was pressed.
fn left(&self) -> bool
Tests if the left mouse button was pressed.
fn middle(&self) -> bool
Tests if the middle mouse button was pressed.
fn right(&self) -> bool
Tests if the right mouse button was pressed.
fn x1(&self) -> bool
Tests if the X1 mouse button was pressed.
fn x2(&self) -> bool
Tests if the X2 mouse button was pressed.
fn from_flags(flags: u32) -> MouseState
Trait Implementations
impl Hash for MouseState
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for MouseState
[src]
fn eq(&self, __arg_0: &MouseState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MouseState) -> bool
This method tests for !=
.
impl Eq for MouseState
[src]
impl Clone for MouseState
[src]
fn clone(&self) -> MouseState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more