pub struct MouseDown { /* private fields */ }Implementations§
Source§impl MouseDown
impl MouseDown
pub fn prevent_default(&self)
pub fn stop_propagation(&self)
pub fn stop_immediate_propagation(&self)
pub fn target(&self) -> Option<EventTarget>
pub fn dyn_target<A>(&self) -> Option<A>where
A: JsCast,
Source§impl MouseDown
impl MouseDown
pub fn x(&self) -> i32
pub fn y(&self) -> i32
pub fn movement_x(&self) -> i32
pub fn movement_y(&self) -> i32
pub fn offset_x(&self) -> i32
pub fn offset_y(&self) -> i32
pub fn page_x(&self) -> i32
pub fn page_y(&self) -> i32
pub fn screen_x(&self) -> i32
pub fn screen_y(&self) -> i32
pub fn ctrl_key(&self) -> bool
pub fn shift_key(&self) -> bool
pub fn alt_key(&self) -> bool
pub fn mouse_x(&self) -> i32
pub fn mouse_y(&self) -> i32
Trait Implementations§
Source§impl StaticEvent for MouseDown
impl StaticEvent for MouseDown
const EVENT_TYPE: &'static str = "mousedown"
fn unchecked_from_event(event: Event) -> Self
Auto Trait Implementations§
impl Freeze for MouseDown
impl RefUnwindSafe for MouseDown
impl !Send for MouseDown
impl !Sync for MouseDown
impl Unpin for MouseDown
impl UnwindSafe for MouseDown
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