webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
MouseEvent Interface Reference

import"MouseEvent.idl";

Inheritance diagram for MouseEvent:
UIEvent Event WheelEvent

Public Member Functions

void initMouseEvent (optional DOMString type="undefined", optional boolean canBubble=false, optional boolean cancelable=false, optional DOMWindow? view=null, optional long detail=0, optional long screenX=0, optional long screenY=0, optional long clientX=0, optional long clientY=0, optional boolean ctrlKey=false, optional boolean altKey=false, optional boolean shiftKey=false, optional boolean metaKey=false, optional unsigned short button=0, optional any relatedTarget=null)
 
- Public Member Functions inherited from UIEvent
void initUIEvent (optional DOMString type="undefined", optional boolean canBubble=false, optional boolean cancelable=false, optional DOMWindow? view=null, optional long detail=0)
 
void_hidEvent ()
 
NSString_unmodifiedInput ()
 
NSString_modifiedInput ()
 
NSInteger _modifierFlags ()
 
BOOL _isKeyDown ()
 
- Public Member Functions inherited from Event
sequence< NodecomposedPath ()
 
void stopPropagation ()
 
void preventDefault ()
 
void initEvent (DOMString type, optional boolean bubbles=false, optional boolean cancelable=false)
 
void stopImmediatePropagation ()
 

Public Attributes

const double WEBKIT_FORCE_AT_MOUSE_DOWN = 1
 
const double WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN = 2
 
readonly attribute long screenX
 
readonly attribute long screenY
 
readonly attribute long clientX
 
readonly attribute long clientY
 
readonly attribute boolean ctrlKey
 
readonly attribute boolean shiftKey
 
readonly attribute boolean altKey
 
readonly attribute boolean metaKey
 
readonly attribute unsigned short button
 
readonly attribute EventTarget relatedTarget
 
readonly attribute long movementX
 
readonly attribute long movementY
 
readonly attribute double webkitForce
 
readonly attribute long offsetX
 
readonly attribute long offsetY
 
readonly attribute long x
 
readonly attribute long y
 
readonly attribute Node fromElement
 
readonly attribute Node toElement
 
readonly attribute DataTransfer dataTransfer
 
- Public Attributes inherited from UIEvent
readonly attribute DOMWindow view
 
readonly attribute long detail
 
readonly attribute long layerX
 
readonly attribute long layerY
 
readonly attribute long pageX
 
readonly attribute long pageY
 
readonly attribute long which
 
- Public Attributes inherited from Event
EventType Type
 
union {
   MoveEvent   Move
 
   SizeEvent   Size
 
   KeyEvent   Key
 
   MouseMoveEvent   MouseMove
 
   MouseButtonEvent   MouseButton
 
   MouseWheelEvent   MouseWheel
 
}; 
 
const unsigned short NONE = 0
 
const unsigned short CAPTURING_PHASE = 1
 
const unsigned short AT_TARGET = 2
 
const unsigned short BUBBLING_PHASE = 3
 
readonly attribute DOMString type
 
readonly attribute EventTarget target
 
readonly attribute EventTarget currentTarget
 
readonly attribute unsigned short eventPhase
 
readonly attribute boolean bubbles
 
readonly attribute boolean cancelable
 
readonly attribute boolean composed
 
readonly attribute DOMTimeStamp timeStamp
 
readonly attribute boolean defaultPrevented
 
readonly attribute boolean isTrusted
 
readonly attribute EventTarget srcElement
 
attribute boolean returnValue
 
attribute boolean cancelBubble
 

Additional Inherited Members

- Public Types inherited from Event
enum  EventType {
  EVENT_CLOSED, EVENT_MOVED, EVENT_RESIZED, EVENT_LOST_FOCUS,
  EVENT_GAINED_FOCUS, EVENT_TEXT_ENTERED, EVENT_KEY_PRESSED, EVENT_KEY_RELEASED,
  EVENT_MOUSE_WHEEL_MOVED, EVENT_MOUSE_BUTTON_PRESSED, EVENT_MOUSE_BUTTON_RELEASED, EVENT_MOUSE_MOVED,
  EVENT_MOUSE_ENTERED, EVENT_MOUSE_LEFT, EVENT_TEST
}
 
- Properties inherited from UIEvent
UIKeyboardInputFlags _inputFlags
 

Member Function Documentation

◆ initMouseEvent()

void MouseEvent::initMouseEvent ( optional DOMString  type = "undefined",
optional boolean  canBubble = false,
optional boolean  cancelable = false,
optional DOMWindow view = null,
optional long  detail = 0,
optional long  screenX = 0,
optional long  screenY = 0,
optional long  clientX = 0,
optional long  clientY = 0,
optional boolean  ctrlKey = false,
optional boolean  altKey = false,
optional boolean  shiftKey = false,
optional boolean  metaKey = false,
optional unsigned short  button = 0,
optional any  relatedTarget = null 
)

Member Data Documentation

◆ altKey

readonly attribute boolean MouseEvent::altKey

◆ button

readonly attribute unsigned short MouseEvent::button

◆ clientX

readonly attribute long MouseEvent::clientX

◆ clientY

readonly attribute long MouseEvent::clientY

◆ ctrlKey

readonly attribute boolean MouseEvent::ctrlKey

◆ dataTransfer

readonly attribute DataTransfer MouseEvent::dataTransfer

◆ fromElement

readonly attribute Node MouseEvent::fromElement

◆ metaKey

readonly attribute boolean MouseEvent::metaKey

◆ movementX

readonly attribute long MouseEvent::movementX

◆ movementY

readonly attribute long MouseEvent::movementY

◆ offsetX

readonly attribute long MouseEvent::offsetX

◆ offsetY

readonly attribute long MouseEvent::offsetY

◆ relatedTarget

readonly attribute EventTarget MouseEvent::relatedTarget

◆ screenX

readonly attribute long MouseEvent::screenX

◆ screenY

readonly attribute long MouseEvent::screenY

◆ shiftKey

readonly attribute boolean MouseEvent::shiftKey

◆ toElement

readonly attribute Node MouseEvent::toElement

◆ WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN

const double MouseEvent::WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN = 2

◆ WEBKIT_FORCE_AT_MOUSE_DOWN

const double MouseEvent::WEBKIT_FORCE_AT_MOUSE_DOWN = 1

◆ webkitForce

readonly attribute double MouseEvent::webkitForce

◆ x

readonly attribute long MouseEvent::x

◆ y

readonly attribute long MouseEvent::y

The documentation for this interface was generated from the following file: