pub struct MouseState {
pub x: i32,
pub y: i32,
pub left_down: bool,
pub right_down: bool,
pub middle_down: bool,
pub scroll_x: i32,
pub scroll_y: i32,
/* private fields */
}Fields§
§x: i32§y: i32§left_down: bool§right_down: bool§middle_down: bool§scroll_x: i32§scroll_y: i32Implementations§
Source§impl MouseState
impl MouseState
pub fn new() -> Self
pub fn process_event(&mut self, event: &Event) -> Option<MouseEvent>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MouseState
impl RefUnwindSafe for MouseState
impl Send for MouseState
impl Sync for MouseState
impl Unpin for MouseState
impl UnsafeUnpin 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