pub struct OnClick { /* private fields */ }Expand description
- Bubbles: Yes
- Cancelable: Yes
- Event type:
Event:> [UiEvent] :> [MouseEvent] :>PointerEvent - Supported HTML tags: All HTML elements, EXCEPT:
<base>,<bdo>,<br>,<head>,<html>,<iframe>,<meta>,<param>,<script>,<style>,<title>
Implementations§
Source§impl OnClick
methods inherit from PointerEvent
impl OnClick
methods inherit from PointerEvent
Sourcepub fn pointer_id(&self) -> i32
pub fn pointer_id(&self) -> i32
Getter for the pointerId field of this object.
Sourcepub fn tangential_pressure(&self) -> f32
pub fn tangential_pressure(&self) -> f32
Getter for the tangentialPressure field of this object.
Sourcepub fn pointer_type(&self) -> String
pub fn pointer_type(&self) -> String
Getter for the pointerType field of this object.
Sourcepub fn is_primary(&self) -> bool
pub fn is_primary(&self) -> bool
Getter for the isPrimary field of this object.
Sourcepub fn get_coalesced_events(&self) -> Array
pub fn get_coalesced_events(&self) -> Array
The getCoalescedEvents() method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnClick
impl RefUnwindSafe for OnClick
impl !Send for OnClick
impl !Sync for OnClick
impl Unpin for OnClick
impl UnwindSafe for OnClick
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