The Touch interface represents a single contact point on a touch-sensitive
device. The contact point is commonly a finger or stylus and the device may
be a touchscreen or trackpad.
(JavaScript docs)
Returns a unique identifier for this Touch object. A given touch point
(say, by a finger) will have the same identifier for the duration of
its movement around the surface. This lets you ensure that you're
tracking the same touch all the time.
(JavaScript docs)
Returns the X coordinate of the touch point relative to the left edge of the screen.
(JavaScript docs)
Returns the Y coordinate of the touch point relative to the left edge of the screen.
(JavaScript docs)
Returns the X coordinate of the touch point relative to the left edge of the browser viewport, not including any scroll offset.
(JavaScript docs)
Returns the Y coordinate of the touch point relative to the left edge of the browser viewport, not including any scroll offset.
(JavaScript docs)
pub fn page_x(&self) -> f64 | [src] |
Returns the X coordinate of the touch point relative to the left edge of the document. Unlike clientX, this value includes the horizontal scroll offset, if any.
(JavaScript docs)
pub fn page_y(&self) -> f64 | [src] |
Returns the Y coordinate of the touch point relative to the left edge of the document. Unlike clientX, this value includes the horizontal scroll offset, if any.
(JavaScript docs)
Returns the Element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.
(JavaScript docs)
Returns the X radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenX.
(JavaScript docs)
Returns the Y radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as screenY.
(JavaScript docs)
Returns the angle (in degrees) that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.
(JavaScript docs)
Returns the amount of pressure being applied to the surface by the user, as a float between 0.0 (no pressure) and 1.0 (maximum pressure).
(JavaScript docs)
The altitude (in radians) of a stylus, in the range 0 (parallel to the surface) to π/2 (perpendicular to the surface). The value 0 should be used for devices which do not support this property.
(JavaScript docs)
The azimuth angle (in radians) of a stylus, in the range 0 to 2π. 0 represents a stylus whose cap is pointing in the direction of increasing screenX values. π/2 represents a stylus whose cap is pointing in the direction of increasing screenY values. The value 0 should be used for devices which do not support this property.
(JavaScript docs)
The type of device used to trigger the touch.
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
type Error = ConversionError
The type returned in the event of a conversion error.
Checks whenever a given Reference if of type Self
.
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static