haXe API Documentation
Back | Index
extern class js.html.MouseEvent
extends UIEvent
Available in js
The DOM MouseEvent represents events that occur due to the user interacting with a pointing device (such as a mouse). It's represented by the nsINSDOMMouseEvent  interface, which extends the nsIDOMMouseEvent interface.

Documentation for this class was provided by MDN.
var altKey(default,null) : Bool
true if the alt key was down when the mouse event was fired. Read only.
var button(default,null) : Int
The button number that was pressed when the mouse event was fired: Left button=0, middle button=1 (if present), right button=2. For mice configured for left handed use in which the button actions are reversed the values are instead read from right to left. Read only.
var clientX(default,null) : Int
The X coordinate of the mouse pointer in local (DOM content) coordinates. Read only.
var clientY(default,null) : Int
The Y coordinate of the mouse pointer in local (DOM content) coordinates. Read only.
var ctrlKey(default,null) : Bool
true if the control key was down when the mouse event was fired. Read only.
var dataTransfer(default,null) : Clipboard
var fromElement(default,null) : Node
var metaKey(default,null) : Bool
true if the meta key was down when the mouse event was fired. Read only.
var movementX(default,null) : Int
var movementY(default,null) : Int
var offsetX(default,null) : Int
var offsetY(default,null) : Int
var relatedTarget(default,null) : EventTarget
The target to which the event applies. Read only.
var screenX(default,null) : Int
The X coordinate of the mouse pointer in global (screen) coordinates. Read only.
var screenY(default,null) : Int
The Y coordinate of the mouse pointer in global (screen) coordinates. Read only.
var shiftKey(default,null) : Bool
true if the shift key was down when the mouse event was fired. Read only.
var toElement(default,null) : Node
var x(default,null) : Int
var y(default,null) : Int
function initMouseEvent(type : String, canBubble : Bool, cancelable : Bool, view : DOMWindow, detail : Int, screenX : Int, screenY : Int, clientX : Int, clientY : Int, ctrlKey : Bool, altKey : Bool, shiftKey : Bool, metaKey : Bool, button : Int, relatedTarget : EventTarget) : Void
Back | Index