@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="PointerEvent")
public class PointerEvent
extends MouseEvent
AT_TARGET, BUBBLING_PHASE, cancelBubble, CAPTURING_PHASE, NONE, returnValue| Constructor and Description |
|---|
PointerEvent(java.lang.String type)
The PointerEvent() constructor creates a new synthetic and untrusted PointerEvent object instance.
|
PointerEvent(java.lang.String type,
PointerEventInit eventInitDict)
The PointerEvent() constructor creates a new synthetic and untrusted PointerEvent object instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
height()
The height read-only property of the PointerEvent interface represents the height of the pointer's contact geometry, along the y-axis (in CSS pixels).
|
boolean |
isPrimary()
The isPrimary read-only property of the PointerEvent interface indicates whether or not the pointer device that created the event is the primary pointer.
|
int |
pointerId()
The pointerId read-only property of the PointerEvent interface is an identifier assigned to a given pointer event.
|
java.lang.String |
pointerType()
The pointerType read-only property of the PointerEvent interface indicates the device type (mouse, pen, or touch) that caused a given pointer event.
|
float |
pressure()
The pressure read-only property of the PointerEvent interface indicates the normalized pressure of the pointer input.
|
float |
tangentialPressure()
The tangentialPressure read-only property of the PointerEvent interface represents the normalized tangential pressure of the pointer input (also known as barrel pressure or cylinder stress).
|
int |
tiltX()
The tiltX read-only property of the PointerEvent interface is the angle (in degrees) between the Y-Z plane of the pointer and the screen.
|
int |
tiltY()
The tiltY read-only property of the PointerEvent interface is the angle (in degrees) between the X-Z plane of the pointer and the screen.
|
int |
twist()
The twist read-only property of the PointerEvent interface represents the clockwise rotation of the pointer (e.g., pen stylus) around its major axis, in degrees.
|
double |
width()
The width read-only property of the PointerEvent interface represents the width of the pointer's contact geometry along the x-axis, measured in CSS pixels.
|
altKey, button, buttons, clientX, clientY, ctrlKey, getModifierState, metaKey, movementX, movementY, offsetX, offsetY, pageX, pageY, relatedTarget, screenX, screenY, shiftKey, x, ybubbles, cancelable, composed, composedPath, currentTarget, defaultPrevented, eventPhase, initEvent, initEvent, initEvent, isTrusted, preventDefault, srcElement, stopImmediatePropagation, stopPropagation, target, timeStamp, typeassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic PointerEvent(@Nonnull
java.lang.String type,
@Nonnull
PointerEventInit eventInitDict)
public PointerEvent(@Nonnull
java.lang.String type)
@JsProperty(name="height") public double height()
@JsProperty(name="isPrimary") public boolean isPrimary()
@JsProperty(name="pointerId") public int pointerId()
@JsProperty(name="pointerType") @Nonnull public java.lang.String pointerType()
@JsProperty(name="pressure") public float pressure()
@JsProperty(name="tangentialPressure") public float tangentialPressure()
@JsProperty(name="tiltX") public int tiltX()
@JsProperty(name="tiltY") public int tiltY()
@JsProperty(name="twist") public int twist()
@JsProperty(name="width") public double width()