pub struct NativeMouseEvent { /* private fields */ }Expand description
Data associated with a mouse event.
Captures coordinates, buttons, and modifier key states.
Implementations§
Source§impl NativeMouseEvent
impl NativeMouseEvent
pub fn get_client_x(&self) -> &i32
pub fn get_mut_client_x(&mut self) -> &mut i32
pub fn set_client_x(&mut self, val: i32) -> &mut Self
pub fn get_client_y(&self) -> &i32
pub fn get_mut_client_y(&mut self) -> &mut i32
pub fn set_client_y(&mut self, val: i32) -> &mut Self
pub fn get_screen_x(&self) -> &i32
pub fn get_mut_screen_x(&mut self) -> &mut i32
pub fn set_screen_x(&mut self, val: i32) -> &mut Self
pub fn get_screen_y(&self) -> &i32
pub fn get_mut_screen_y(&mut self) -> &mut i32
pub fn set_screen_y(&mut self, val: i32) -> &mut Self
pub fn get_ctrl_key(&self) -> &bool
pub fn get_mut_ctrl_key(&mut self) -> &mut bool
pub fn set_ctrl_key(&mut self, val: bool) -> &mut Self
pub fn get_shift_key(&self) -> &bool
pub fn get_mut_shift_key(&mut self) -> &mut bool
pub fn set_shift_key(&mut self, val: bool) -> &mut Self
pub fn get_alt_key(&self) -> &bool
pub fn get_mut_alt_key(&mut self) -> &mut bool
pub fn set_alt_key(&mut self, val: bool) -> &mut Self
pub fn get_meta_key(&self) -> &bool
pub fn get_mut_meta_key(&mut self) -> &mut bool
pub fn set_meta_key(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Default for NativeMouseEvent
impl Default for NativeMouseEvent
Source§fn default() -> NativeMouseEvent
fn default() -> NativeMouseEvent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NativeMouseEvent
impl RefUnwindSafe for NativeMouseEvent
impl Send for NativeMouseEvent
impl Sync for NativeMouseEvent
impl Unpin for NativeMouseEvent
impl UnsafeUnpin for NativeMouseEvent
impl UnwindSafe for NativeMouseEvent
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