CSSPrimitiveValue.hx 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/CSSPrimitiveValue.webidl line 9:0. Do not edit!
  23. package js.html;
  24. @:native("CSSPrimitiveValue")
  25. extern class CSSPrimitiveValue extends CSSValue
  26. {
  27. static inline var CSS_UNKNOWN : Int = 0;
  28. static inline var CSS_NUMBER : Int = 1;
  29. static inline var CSS_PERCENTAGE : Int = 2;
  30. static inline var CSS_EMS : Int = 3;
  31. static inline var CSS_EXS : Int = 4;
  32. static inline var CSS_PX : Int = 5;
  33. static inline var CSS_CM : Int = 6;
  34. static inline var CSS_MM : Int = 7;
  35. static inline var CSS_IN : Int = 8;
  36. static inline var CSS_PT : Int = 9;
  37. static inline var CSS_PC : Int = 10;
  38. static inline var CSS_DEG : Int = 11;
  39. static inline var CSS_RAD : Int = 12;
  40. static inline var CSS_GRAD : Int = 13;
  41. static inline var CSS_MS : Int = 14;
  42. static inline var CSS_S : Int = 15;
  43. static inline var CSS_HZ : Int = 16;
  44. static inline var CSS_KHZ : Int = 17;
  45. static inline var CSS_DIMENSION : Int = 18;
  46. static inline var CSS_STRING : Int = 19;
  47. static inline var CSS_URI : Int = 20;
  48. static inline var CSS_IDENT : Int = 21;
  49. static inline var CSS_ATTR : Int = 22;
  50. static inline var CSS_COUNTER : Int = 23;
  51. static inline var CSS_RECT : Int = 24;
  52. static inline var CSS_RGBCOLOR : Int = 25;
  53. var primitiveType(default,null) : Int;
  54. /** @throws DOMError */
  55. function setFloatValue( unitType : Int, floatValue : Float ) : Void;
  56. /** @throws DOMError */
  57. function getFloatValue( unitType : Int ) : Float;
  58. /** @throws DOMError */
  59. function setStringValue( stringType : Int, stringValue : String ) : Void;
  60. /** @throws DOMError */
  61. function getStringValue() : String;
  62. /** @throws DOMError */
  63. function getCounterValue() : Dynamic/*MISSING Counter*/;
  64. /** @throws DOMError */
  65. function getRectValue() : Rect;
  66. /** @throws DOMError */
  67. function getRGBColorValue() : RGBColor;
  68. }