Interface IUIPointerEvent
interface IUIPointerEvent
Extends IUIWindowEvent
A pointer event (for example a tap or click), containing global and local screen
locations as well as the phase of the pointer.
Methods
getId()
i32 getId()
Returns Id of a pointer. This is useful in case of gesture detection.
Pointer id persists through series of PointerEvents from same device(finger/mouse).
Returns
i32
i32 integer value representing the pointer Event id.
getGlobalLocation()
com.amazon.kepler.uitoolkit.graphics.Point getGlobalLocation()
Returns the location of pointer event relative to the top-left corner of the containing window.
Returns
com.amazon.kepler.uitoolkit.graphics.Point
Point struct representing location of pointer event relative to window.
getLocalLocation()
com.amazon.kepler.uitoolkit.graphics.Point getLocalLocation()
Returns the location of pointer event relative to the top-left corner of the event target.
Returns
com.amazon.kepler.uitoolkit.graphics.Point
Point struct representing location of pointer event relative to target.
getPhase()
com.amazon.kepler.input.events.PointerPhase getPhase()
Returns the phase of the pointer.
Returns
com.amazon.kepler.input.events.PointerPhase
PointerPhase representing current pointer phase.
getSerialId()
i32 getSerialId()
Returns the serial id of pointer event.
Returns
i32
i32 integer value representing the serial ID of pointer event.
getMouseButton()
MouseButton getMouseButton()
Returns the mouse button of pointer event.
Returns
MouseButton
MouseButton struct representing the mouse button which is clicked.

