MouseEvent

open external class MouseEvent : 
    UIEvent,
    UnionElementOrMouseEvent
(source)

Platform and version requirements: JS

Exposes the JavaScript MouseEvent to Kotlin

Constructors

<init>

MouseEvent(
    type: String,
    eventInitDict: MouseEventInit = definedExternally)

Exposes the JavaScript MouseEvent to Kotlin

Properties

altKey

open val altKey: Boolean

button

open val button: Short

buttons

open val buttons: Short

clientX

open val clientX: Int

clientY

open val clientY: Int

ctrlKey

open val ctrlKey: Boolean

metaKey

open val metaKey: Boolean

offsetX

open val offsetX: Double

offsetY

open val offsetY: Double

pageX

open val pageX: Double

pageY

open val pageY: Double

region

open val region: String?

relatedTarget

open val relatedTarget: EventTarget?

screenX

open val screenX: Int

screenY

open val screenY: Int

shiftKey

open val shiftKey: Boolean

Inherited Properties

detail

open val detail: Int

view

open val view: Window?

Functions

getModifierState

fun getModifierState(keyArg: String): Boolean

Inheritors

DragEvent

open external class DragEvent : MouseEvent

Exposes the JavaScript DragEvent to Kotlin

WheelEvent

open external class WheelEvent : MouseEvent

Exposes the JavaScript WheelEvent to Kotlin