InkPoint

data class InkPoint(val xPx: Float, val yPx: Float, val rawPressure: Int, val normalizedPressure: Float, val maxPressure: Int, val tiltX: Int, val tiltY: Int, val eventTimeNanos: Long, val sequence: Long, val tool: InkTool)(source)

Lossless raw input sample normalized for application use.

Constructors

Link copied to clipboard
constructor(xPx: Float, yPx: Float, rawPressure: Int, normalizedPressure: Float, maxPressure: Int, tiltX: Int, tiltY: Int, eventTimeNanos: Long, sequence: Long, tool: InkTool)

Properties

Link copied to clipboard

All v2/KTX points use physical pixels relative to the bound host view.

Link copied to clipboard

Monotonic input-event timestamp in nanoseconds.

Link copied to clipboard

Maximum reported value of the pressure axis.

Link copied to clipboard

Pressure normalized to 0..1.

Link copied to clipboard

Unmodified pressure-axis value.

Link copied to clipboard

Monotonically increasing event sequence number.

Link copied to clipboard

Unit represented by tiltX and tiltY.

Link copied to clipboard
val tiltX: Int

Unmodified horizontal tilt-axis value.

Link copied to clipboard
val tiltY: Int

Unmodified vertical tilt-axis value.

Link copied to clipboard
Link copied to clipboard

Physical tool that produced the sample.

Link copied to clipboard
val xPx: Float

Horizontal view-local coordinate in physical pixels.

Link copied to clipboard
val yPx: Float

Vertical view-local coordinate in physical pixels.

Functions

Link copied to clipboard

Returns a copy transformed into another pixel coordinate space while retaining input metadata.