MouseEvent

@Serializable
data class MouseEvent(val type: String, val detail: Long, val altKey: Boolean, val button: Int, val buttons: Int, val clientX: Float, val clientY: Float, val ctrlKey: Boolean, val metaKey: Boolean, val movementX: Int? = null, val movementY: Int? = null, val region: String? = null, val screenX: Int, val screenY: Int, val pageX: Float, val pageY: Float, val offsetX: Float, val offsetY: Float, val shiftKey: Boolean, val x: Float = clientX, val y: Float = clientY, val retrieved: JsonElement = JsonNull)(source)

Corresponds to a JavaScript event object.

Constructors

Link copied to clipboard
constructor(type: String, detail: Long, altKey: Boolean, button: Int, buttons: Int, clientX: Float, clientY: Float, ctrlKey: Boolean, metaKey: Boolean, movementX: Int? = null, movementY: Int? = null, region: String? = null, screenX: Int, screenY: Int, pageX: Float, pageY: Float, offsetX: Float, offsetY: Float, shiftKey: Boolean, x: Float = clientX, y: Float = clientY, retrieved: JsonElement = JsonNull)

Properties

Link copied to clipboard
Link copied to clipboard
val button: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val movementX: Int? = null
Link copied to clipboard
val movementY: Int? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val region: String? = null
Link copied to clipboard
val retrieved: JsonElement

If elementX.on(retrieveJs = "...") was provided, this will contain the value returned by the JavaScript expression. If no retrieveJs` was specified it will be JsonNull.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val x: Float
Link copied to clipboard
val y: Float