Dart API Referencedart:htmlMouseEvent

MouseEvent Interface

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.

Extends

UIEvent

Subinterfaces

WheelEvent

Constructors

Code new MouseEvent(String type, Window view, int detail, int screenX, int screenY, int clientX, int clientY, int button, [bool canBubble, bool cancelable, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, EventTarget relatedTarget]) #

MouseEvent(String type, Window view, int detail, int screenX, int screenY,
    int clientX, int clientY, int button, [bool canBubble, bool cancelable,
    bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
    EventTarget relatedTarget]);

Methods

Code void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) #

void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget);

Fields

Code final bool altKey #

true if the alt key was down when the mouse event was fired. Read only.
final bool altKey;

Code final int button #

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.
final int button;

Code final int clientX #

The X coordinate of the mouse pointer in local (DOM content) coordinates. Read only.
final int clientX;

Code final int clientY #

The Y coordinate of the mouse pointer in local (DOM content) coordinates. Read only.
final int clientY;

Code final bool ctrlKey #

true if the control key was down when the mouse event was fired. Read only.
final bool ctrlKey;

Code final Clipboard dataTransfer #

final Clipboard dataTransfer;

Code final Node fromElement #

final Node fromElement;

Code final bool metaKey #

true if the meta key was down when the mouse event was fired. Read only.
final bool metaKey;

Code final int offsetX #

final int offsetX;

Code final int offsetY #

final int offsetY;

Code final EventTarget relatedTarget #

The target to which the event applies. Read only.
final EventTarget relatedTarget;

Code final int screenX #

The X coordinate of the mouse pointer in global (screen) coordinates. Read only.
final int screenX;

Code final int screenY #

The Y coordinate of the mouse pointer in global (screen) coordinates. Read only.
final int screenY;

Code final bool shiftKey #

true if the shift key was down when the mouse event was fired. Read only.
final bool shiftKey;

Code final Node toElement #

final Node toElement;

Code final int webkitMovementX #

final int webkitMovementX;

Code final int webkitMovementY #

final int webkitMovementY;

Code final int x #

final int x;

Code final int y #

final int y;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.