Touch.hx 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (C)2005-2013 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, do not edit!
  23. package js.html;
  24. /** A <code>Touch</code> object represents a single point of contact between the user and a touch-sensitive interface device (which may be, for example, a touchscreen or a trackpad).<br><br>
  25. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/Touch">MDN</a>. */
  26. @:native("Touch")
  27. extern class Touch
  28. {
  29. /** The X coordinate of the touch point relative to the viewport, not including any scroll offset. <strong>Read only.</strong> */
  30. var clientX(default,null) : Int;
  31. /** The Y coordinate of the touch point relative to the viewport, not including any scroll offset. <strong>Read only.</strong> */
  32. var clientY(default,null) : Int;
  33. /** The amount of pressure being applied to the surface by the user, as a float between 0.0 (no pressure) and 1.0 (maximum pressure). <strong>Read only.</strong> */
  34. var force(default,null) : Float;
  35. /** A unique identifier for this <code>Touch</code> object. A given touch (say, by a finger) will have the same identifier for the duration of its movement around the surface. This lets you ensure that you're tracking the same touch all the time. <strong>Read only.</strong> */
  36. var identifier(default,null) : Int;
  37. /** The X coordinate of the touch point relative to the viewport, including any scroll offset. <strong>Read only.</strong> */
  38. var pageX(default,null) : Int;
  39. /** The Y coordinate of the touch point relative to the viewport, including any scroll offset. <strong>Read only.</strong> */
  40. var pageY(default,null) : Int;
  41. /** The X radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as <code>screenX</code>. <strong>Read only.</strong> */
  42. var radiusX(default,null) : Int;
  43. /** The Y radius of the ellipse that most closely circumscribes the area of contact with the screen. The value is in pixels of the same scale as <code>screenY</code>. <strong>Read only.</strong> */
  44. var radiusY(default,null) : Int;
  45. /** The angle (in degrees)&nbsp;that the ellipse described by radiusX and radiusY must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface. <strong>Read only.</strong> */
  46. var rotationAngle(default,null) : Float;
  47. /** The X coordinate of the touch point relative to the screen, not including any scroll offset. <strong>Read only.</strong> */
  48. var screenX(default,null) : Int;
  49. /** The Y coordinate of the touch point relative to the screen, not including any scroll offset. <strong>Read only.</strong> */
  50. var screenY(default,null) : Int;
  51. var target(default,null) : EventTarget;
  52. }