Struct moa_host::MouseState
source · pub struct MouseState {
pub buttons: [bool; 3],
pub pos: (u32, u32),
}
Fields§
§pos: (u32, u32)
Implementations§
source§impl MouseState
impl MouseState
pub fn with(left: bool, right: bool, middle: bool, x: u32, y: u32) -> Self
pub fn to_events(&mut self, next_state: MouseState) -> Vec<MouseEvent>
pub fn update_with(&mut self, event: MouseEvent)
Trait Implementations§
source§impl Clone for MouseState
impl Clone for MouseState
source§fn clone(&self) -> MouseState
fn clone(&self) -> MouseState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for MouseState
impl Default for MouseState
source§fn default() -> MouseState
fn default() -> MouseState
Returns the “default value” for a type. Read more
source§impl PartialEq for MouseState
impl PartialEq for MouseState
source§fn eq(&self, other: &MouseState) -> bool
fn eq(&self, other: &MouseState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MouseState
impl Eq for MouseState
impl StructuralPartialEq for MouseState
Auto Trait Implementations§
impl Freeze for MouseState
impl RefUnwindSafe for MouseState
impl Send for MouseState
impl Sync for MouseState
impl Unpin for MouseState
impl UnwindSafe for MouseState
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