Screen.hx 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. /** Returns a reference to the screen object associated with the window.<br><br>
  25. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/window.screen">MDN</a>. */
  26. @:native("Screen")
  27. extern class Screen
  28. {
  29. /** Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows. */
  30. var availHeight(default,null) : Int;
  31. /** Returns the first available pixel available from the left side of the screen. */
  32. var availLeft(default,null) : Int;
  33. /** Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features. */
  34. var availTop(default,null) : Int;
  35. /** Returns the amount of horizontal space in pixels available to the window. */
  36. var availWidth(default,null) : Int;
  37. /** Returns the color depth of the screen. */
  38. var colorDepth(default,null) : Int;
  39. /** Returns the height of the screen in pixels. */
  40. var height(default,null) : Int;
  41. /** Gets the bit depth of the screen. */
  42. var pixelDepth(default,null) : Int;
  43. /** Returns the width of the screen. */
  44. var width(default,null) : Int;
  45. }