#[repr(C)]pub struct EmscriptenMouseEvent {Show 18 fields
pub timestamp: f64,
pub screenX: c_int,
pub screenY: c_int,
pub clientX: c_int,
pub clientY: c_int,
pub ctrlKey: bool,
pub shiftKey: bool,
pub altKey: bool,
pub metaKey: bool,
pub button: c_ushort,
pub buttons: c_ushort,
pub movementX: c_int,
pub movementY: c_int,
pub targetX: c_int,
pub targetY: c_int,
pub canvasX: c_int,
pub canvasY: c_int,
pub padding: c_int,
}
Fields§
§timestamp: f64
§screenX: c_int
§screenY: c_int
§clientX: c_int
§clientY: c_int
§ctrlKey: bool
§shiftKey: bool
§altKey: bool
§metaKey: bool
§movementX: c_int
§movementY: c_int
§targetX: c_int
§targetY: c_int
§canvasX: c_int
§canvasY: c_int
§padding: c_int
Trait Implementations§
Source§impl Clone for EmscriptenMouseEvent
impl Clone for EmscriptenMouseEvent
Source§fn clone(&self) -> EmscriptenMouseEvent
fn clone(&self) -> EmscriptenMouseEvent
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 Debug for EmscriptenMouseEvent
impl Debug for EmscriptenMouseEvent
impl Copy for EmscriptenMouseEvent
Auto Trait Implementations§
impl Freeze for EmscriptenMouseEvent
impl RefUnwindSafe for EmscriptenMouseEvent
impl Send for EmscriptenMouseEvent
impl Sync for EmscriptenMouseEvent
impl Unpin for EmscriptenMouseEvent
impl UnwindSafe for EmscriptenMouseEvent
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