MouseEvent

data class MouseEvent(var type: MouseEvent.Type = Type.MOVE, var id: Int = 0, var x: Int = 0, var y: Int = 0, var button: MouseButton = MouseButton.NONE, var buttons: Int = 0, var scrollDeltaX: Float = 0.0f, var scrollDeltaY: Float = 0.0f, var scrollDeltaZ: Float = 0.0f, var isShiftDown: Boolean = false, var isCtrlDown: Boolean = false, var isAltDown: Boolean = false, var isMetaDown: Boolean = false, var scaleCoords: Boolean = true, var emulated: Boolean = false, var scrollDeltaMode: MouseEvent.ScrollDeltaMode = ScrollDeltaMode.LINE) : Event, TEvent<MouseEvent>

x and y positions are window-based where 0,0 is the top-left position in the window client area

Constructors

Link copied to clipboard
constructor(type: MouseEvent.Type = Type.MOVE, id: Int = 0, x: Int = 0, y: Int = 0, button: MouseButton = MouseButton.NONE, buttons: Int = 0, scrollDeltaX: Float = 0.0f, scrollDeltaY: Float = 0.0f, scrollDeltaZ: Float = 0.0f, isShiftDown: Boolean = false, isCtrlDown: Boolean = false, isAltDown: Boolean = false, isMetaDown: Boolean = false, scaleCoords: Boolean = true, emulated: Boolean = false, scrollDeltaMode: MouseEvent.ScrollDeltaMode = ScrollDeltaMode.LINE)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Not direct user mouse input. Maybe event generated from touch events?

Link copied to clipboard
var id: 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
var requestLock: () -> Unit
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
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
var target: Any?
Link copied to clipboard
open override var type: MouseEvent.Type
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
Link copied to clipboard
Link copied to clipboard
var x: Int
Link copied to clipboard
var y: Int

Functions

Link copied to clipboard
fun copyFrom(other: MouseEvent)
Link copied to clipboard
fun preventDefault(reason: Any? = null)
Link copied to clipboard
fun Event.preventDefault(reason: Any? = null): Nothing
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun stopPropagation(reason: Any? = null)