ImageElement.hx 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. /** DOM image objects expose the <a title="http://www.w3.org/TR/html5/embedded-content-1.html#htmlimageelement" class=" external" rel="external" href="http://www.w3.org/TR/html5/embedded-content-1.html#htmlimageelement" target="_blank">HTMLImageElement</a> (or
  25. <span><a rel="custom" href="https://developer.mozilla.org/en/HTML">HTML 4</a></span> <a title="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-17701901" class=" external" rel="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-17701901" target="_blank"><code>HTMLImageElement</code></a>) interface, which provides special properties and methods (beyond the regular <code><a rel="custom" href="/api/js/html/Element">element</a></code>
  26. object interface they also have available to them by inheritance) for manipulating the layout and presentation of input elements.<br><br>
  27. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/HTMLImageElement">MDN</a>. */
  28. @:native("HTMLImageElement")
  29. extern class ImageElement extends Element
  30. {
  31. /** Indicates the alignment of the image with respect to the surrounding context. */
  32. var align : String;
  33. /** Reflects the
  34. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/img#attr-alt">alt</a></code>
  35. HTML attribute, indicating fallback context for the image. */
  36. var alt : String;
  37. /** Width of the border around the image. */
  38. var border : String;
  39. /** True if the browser has fetched the image, and it is in a <a title="en/HTML/Element/Img#Image Format" rel="internal" href="https://developer.mozilla.org/En/HTML/Element/Img#Image_Format">supported image type</a> that was decoded without errors. */
  40. var complete(default,null) : Bool;
  41. /** The CORS setting for this image element. See <a title="en/HTML/CORS settings attributes" rel="internal" href="https://developer.mozilla.org/en/HTML/CORS_settings_attributes">CORS&nbsp;settings attributes</a> for details. */
  42. var crossOrigin : String;
  43. /** Reflects the
  44. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/img#attr-height">height</a></code>
  45. HTML attribute, indicating the rendered height of the image in CSS&nbsp;pixels. */
  46. var height : Int;
  47. /** Space to the left and right of the image. */
  48. var hspace : Int;
  49. /** Reflects the
  50. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/img#attr-ismap">ismap</a></code>
  51. HTML attribute, indicating that the image is part of a server-side image map. */
  52. var isMap : Bool;
  53. /** URI of a long description of the image. */
  54. var longDesc : String;
  55. /** A reference to a low-quality (but faster to load) copy of the image. */
  56. var lowsrc : String;
  57. var name : String;
  58. /** Intrinsic height of the image in CSS&nbsp;pixels, if it is available; otherwise, 0. */
  59. var naturalHeight(default,null) : Int;
  60. /** Intrinsic width of the image in CSS&nbsp;pixels, if it is available; otherwise, 0. */
  61. var naturalWidth(default,null) : Int;
  62. /** Reflects the
  63. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element#attr-src">src</a></code>
  64. HTML attribute, containing the URL of the image. */
  65. var src : String;
  66. /** Reflects the
  67. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/img#attr-usemap">usemap</a></code>
  68. HTML attribute, containing a partial URL of a map element. */
  69. var useMap : String;
  70. /** Space above and below the image. */
  71. var vspace : Int;
  72. /** Reflects the
  73. <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/img#attr-width">width</a></code>
  74. HTML attribute, indicating the rendered width of the image in CSS&nbsp;pixels. */
  75. var width : Int;
  76. var x(default,null) : Int;
  77. var y(default,null) : Int;
  78. }