Event.hx 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C)2005-2015 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla/Event.webidl line 15:0. Do not edit!
  23. package js.html;
  24. @:native("Event")
  25. extern class Event
  26. {
  27. static inline var NONE : Int = 0;
  28. static inline var CAPTURING_PHASE : Int = 1;
  29. static inline var AT_TARGET : Int = 2;
  30. static inline var BUBBLING_PHASE : Int = 3;
  31. static inline var ALT_MASK : Int = 1;
  32. static inline var CONTROL_MASK : Int = 2;
  33. static inline var SHIFT_MASK : Int = 4;
  34. static inline var META_MASK : Int = 8;
  35. var type(default,null) : String;
  36. var target(default,null) : EventTarget;
  37. var currentTarget(default,null) : EventTarget;
  38. var eventPhase(default,null) : Int;
  39. var bubbles(default,null) : Bool;
  40. var cancelable(default,null) : Bool;
  41. var defaultPrevented(default,null) : Bool;
  42. var isTrusted(default,null) : Bool;
  43. var timeStamp(default,null) : Float;
  44. var originalTarget(default,null) : EventTarget;
  45. var explicitOriginalTarget(default,null) : EventTarget;
  46. /** @throws DOMError */
  47. function new( type : String, ?eventInitDict : EventInit ) : Void;
  48. function stopPropagation() : Void;
  49. function stopImmediatePropagation() : Void;
  50. function preventDefault() : Void;
  51. /** @throws DOMError */
  52. function initEvent( type : String, bubbles : Bool, cancelable : Bool ) : Void;
  53. function getPreventDefault() : Bool;
  54. }