pub struct OnMouseDown { /* private fields */ }Expand description
- Bubbles: Yes
- Cancelable: Yes
- Event type: MouseEvent
- Supported HTML tags: All HTML elements, EXCEPT:
<base>,<bdo>,<br>,<head>,<html>,<iframe>,<meta>,<param>,<script>,<style>, and<title>.
Implementations§
Source§impl OnMouseDown
impl OnMouseDown
Getter for the button field of this object.
Getter for the buttons field of this object.
Getter for the relatedTarget field of this object.
Sourcepub fn movement_x(&self) -> i32
pub fn movement_x(&self) -> i32
Getter for the movementX field of this object.
Sourcepub fn movement_y(&self) -> i32
pub fn movement_y(&self) -> i32
Getter for the movementY field of this object.
Trait Implementations§
Source§impl Clone for OnMouseDown
impl Clone for OnMouseDown
Source§fn clone(&self) -> OnMouseDown
fn clone(&self) -> OnMouseDown
Returns a duplicate 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 Debug for OnMouseDown
impl Debug for OnMouseDown
Auto Trait Implementations§
impl Freeze for OnMouseDown
impl RefUnwindSafe for OnMouseDown
impl !Send for OnMouseDown
impl !Sync for OnMouseDown
impl Unpin for OnMouseDown
impl UnwindSafe for OnMouseDown
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