Class zebkit.ui.event.PointerEvent
extends <zebkit.Event>
<zebkit.ui.event>

Mouse and touch screen input event class. The input event is triggered by a mouse or touch screen.

Constructor:
zebkit.ui.event.PointerEvent ( )



private void updateCoordinates (source, ax, ay)

Recompute the event relative location for the new source component and it absolute location


Parameters:
  • source <zebkit.ui.Panel>

    a source component that triggers the event

  • ax <Integer>

    an absolute (relatively to a canvas where the source component is hosted) x mouse cursor coordinate

  • ay <Integer>

    an absolute (relatively to a canvas where the source component is hosted) y mouse cursor coordinate



Inherited attributes:
public Object source   



public <Integer> absX

Absolute mouse pointer x coordinate

public <Integer> absY

Absolute mouse pointer y coordinate

public <Object> identifier

Pointer identifier.

public <Integer> pageX

Page x

public <Integer> pageY

Page y

public <String> pointerType

Pointer type. Can be "mouse", "touch", "pen"

public <DOMElement> target

Target DOM element

public <Integer> touchCounter

Touch counter

public <Integer> x

Mouse pointer x coordinate (relatively to source UI component)

public <Integer> y

Mouse pointer y coordinate (relatively to source UI component)