Event.hx 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* This file is generated, do not edit! Visit http://api.jquery.com/ for API documentation. */
  2. package js.jquery;
  3. @:native("$.Event") extern class Event extends js.html.Event {
  4. /**
  5. An optional object of data passed to an event method when the current executing handler is bound.
  6. **/
  7. public var data : Dynamic;
  8. /**
  9. The element where the currently-called jQuery event handler was attached.
  10. **/
  11. public var delegateTarget : js.html.Element;
  12. /**
  13. Returns whether <a href="/event.preventDefault/">event.preventDefault()</a> was ever called on this event object.
  14. **/
  15. public function isDefaultPrevented():Bool;
  16. /**
  17. Returns whether event.stopImmediatePropagation() was ever called on this event object.
  18. **/
  19. public function isImmediatePropagationStopped():Bool;
  20. /**
  21. Returns whether <a href="/event.stopPropagation/">event.stopPropagation()</a> was ever called on this event object.
  22. **/
  23. public function isPropagationStopped():Bool;
  24. /**
  25. Indicates whether the META key was pressed when the event fired.
  26. **/
  27. public var metaKey : Bool;
  28. /**
  29. The namespace specified when the event was triggered.
  30. **/
  31. public var namespace : String;
  32. /**
  33. The mouse position relative to the left edge of the document.
  34. **/
  35. public var pageX : Float;
  36. /**
  37. The mouse position relative to the top edge of the document.
  38. **/
  39. public var pageY : Float;
  40. /**
  41. The other DOM element involved in the event, if any.
  42. **/
  43. public var relatedTarget : js.html.Element;
  44. /**
  45. The last value returned by an event handler that was triggered by this event, unless the value was <code>undefined</code>.
  46. **/
  47. public var result : Dynamic;
  48. /**
  49. For key or mouse events, this property indicates the specific key or button that was pressed.
  50. **/
  51. public var which : Float;
  52. public var altKey : Bool;
  53. public var button : Int;
  54. public var buttons : Int;
  55. public var char : Int;
  56. public var charCode : Int;
  57. public var clientX : Int;
  58. public var clientY : Int;
  59. public var ctrlKey : Bool;
  60. public var detail : Int;
  61. public var key : String;
  62. public var keyCode : Int;
  63. public var offsetX : Int;
  64. public var offsetY : Int;
  65. public var screenX : Int;
  66. public var screenY : Int;
  67. public var shiftKey : Bool;
  68. public var toElement : js.html.Element;
  69. public var view : js.html.Window;
  70. }