redraw/dom/event/pointer

The PointerEvent interface represents the state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.

A pointer is a hardware agnostic representation of input devices (such as a mouse, pen or contact point on a touch-enable surface). The pointer can target a specific coordinate (or set of coordinates) on the contact surface such as a screen.

A pointer’s hit test is the process a browser uses to determine the target element for a pointer event. Typically, this is determined by considering the pointer’s location and also the visual layout of elements in a document on screen media.

Types

pub type PointerEvent

Values

pub fn altitude_angle(event: PointerEvent) -> Int
pub const as_event: fn(PointerEvent) -> event.Event

PointerEvent inherits Event.

pub const as_mouse_event: fn(PointerEvent) -> mouse.MouseEvent

PointerEvent inherits MouseEvent.

pub const as_ui_event: fn(PointerEvent) -> ui.UIEvent

PointerEvent inherits UIEvent.

pub fn azimuth_angle(event: PointerEvent) -> Int
pub fn height(event: PointerEvent) -> Int
pub fn is_primary(event: PointerEvent) -> Bool
pub fn pointer_id(event: PointerEvent) -> Int
pub fn pointer_type(event: PointerEvent) -> String
pub fn pressure(event: PointerEvent) -> Float
pub fn tangential_pressure(event: PointerEvent) -> Float
pub fn tilt_x(event: PointerEvent) -> Int
pub fn tilt_y(event: PointerEvent) -> Int
pub fn twist(event: PointerEvent) -> Int
pub fn width(event: PointerEvent) -> Int
Search Document