Class PointerEventAbstract

A pointer Event.

Has a focus type decided by the child classes and does not need focus.

Hierarchy

Constructors

Properties

alt: boolean

Is alt being pressed?

ctrl: boolean

Is control being pressed?

focusType: null | FocusType

The focus type of this event. Can be null.

If null, this event cannot be focused, since events are focused by their FocusType as a group.

needsFocus: boolean

Can this event be dispatched without a target?

reversed: boolean

Is this event dispatched in reverse-order?

shift: boolean

Is shift being pressed?

target: null | Widget

The target of this event. Can be null

x: number

Pointer event position's X coordinate in pixels. Not an integer.

y: number

Pointer event position's Y coordinate in pixels. Not an integer.

Methods

  • Create a new PointerEvent event with the same properties as this, except with new x and y values corrected for a given offset.

    Parameters

    • xOffset: number
    • yOffset: number

    Returns PointerEvent

Generated using TypeDoc