class RoutedEventContext
source · line 20public class RoutedEventContext internal constructor(
private val owner: InputRouter,
private val destination: InputScope,
private val receiver: InputScope,
private val stage: RoutedPhase,
private val stamp: InputTime,
private val position: Point?,
private val geometry: CanvasGeometry?,
private val flags: RouteFlags
)
A synchronous delivery borrow; propagation and default cancellation are independent.
property cancelable
source · line 51public val cancelable: Boolean
get: public read-only
getter get
source · line 51get(): Boolean
property currentTarget
source · line 35public val currentTarget: InputScope
get: public read-only
getter get
source · line 35get(): InputScope
function stopPropagation
source · line 140public fun stopPropagation(): Unit
property scrollRemaining
source · line 64public val scrollRemaining: InputScrollDelta?
get: public read-only
Remaining source-unit displacement; the event itself keeps its original delta.
getter get
source · line 64get(): Option<InputScrollDelta>
property defaultPrevented
source · line 59public val defaultPrevented: Boolean
get: public read-only
getter get
source · line 59get(): Boolean
function consumeContactMovement
source · line 115public fun consumeContactMovement(onRemainder: ((Point) -> Point)? = None, apply: (Point) -> Point): Unit
The contact owner opens movement sharing; ancestors consume only its remainder.
parameter apply
source · line 117apply: (Point) -> Point
parameter onRemainder
source · line 116onRemainder: ((Point) -> Point)? = None
property time
source · line 43public val time: InputTime
get: public read-only
getter get
source · line 43get(): InputTime
function consumeScroll
source · line 72public fun consumeScroll(lineStep: Double, onRemainder: ((Point) -> Point)? = None, apply: (Point) -> Point): Unit
Applies a local portion, then returns the unconsumed displacement to source units.
parameter lineStep
source · line 73lineStep: Double
parameter onRemainder
source · line 74onRemainder: ((Point) -> Point)? = None
parameter apply
source · line 75apply: (Point) -> Point
function preventDefault
source · line 145public fun preventDefault(): Unit
function consume
source · line 150public fun consume(): Unit
property phase
source · line 39public val phase: RoutedPhase
get: public read-only
getter get
source · line 39get(): RoutedPhase
property localPosition
source · line 47public val localPosition: Point?
get: public read-only
getter get
source · line 47get(): Option<Point>
property contactRemaining
source · line 104public val contactRemaining: Point?
get: public read-only
Remaining window-logical movement after the contact owner opens this delivery.
getter get
source · line 104get(): Option<Point>
property propagationStopped
source · line 55public val propagationStopped: Boolean
get: public read-only
getter get
source · line 55get(): Boolean
property target
source · line 31public val target: InputScope
get: public read-only
getter get
source · line 31get(): InputScope