Skip to content

PointerEventType

Identifies the type of pointer (mouse) interaction that triggers an event handler.

Entries

PRESS

The primary or secondary mouse button was pressed inside the node's bounds.

GLOBAL_PRESS

A mouse button was pressed anywhere on the screen regardless of bounds. Useful for detecting clicks outside a focused element.

RELEASE

A mouse button was released inside the node's bounds.

GLOBAL_RELEASE

A mouse button was released anywhere on the screen.

MOVE

The mouse cursor moved while inside the node's bounds.

ENTER

The mouse cursor entered the node's bounds from outside.

EXIT

The mouse cursor left the node's bounds.

SCROLL

The mouse wheel was scrolled over the node.

DRAG

The mouse was dragged (button held + moved) over the node.

GLOBAL_DRAG

The mouse was dragged anywhere on the screen.

Properties

entries

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

name

val name: String

ordinal

val ordinal: Int

Functions

valueOf

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws

IllegalArgumentException

if this enum type has no constant with the specified name

values

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.