PointerEvent

sealed interface PointerEvent(source)

Initial pointer protocol events delivered after layout hit testing.

Event-specific data is part of each variant, so invalid action combinations cannot be represented.

Inheritors

Types

Link copied to clipboard
data class Drag(val position: IntOffset, val button: PointerButton, val deltaX: Double, val deltaY: Double) : PointerEvent

A pointer movement event while one typed button remains held.

Link copied to clipboard
data class Move(val position: IntOffset) : PointerEvent

A pointer movement event.

Link copied to clipboard
data class Press(val position: IntOffset, val button: PointerButton) : PointerEvent

A pointer press with a typed button.

Link copied to clipboard
data class Release(val position: IntOffset, val button: PointerButton) : PointerEvent

A pointer release with a typed button.

Link copied to clipboard
data class Scroll(val position: IntOffset, val deltaX: Double, val deltaY: Double) : PointerEvent

A pointer scroll event with finite logical input displacement.

Properties

Link copied to clipboard
abstract val position: IntOffset

The event position in tree coordinates.