class Screen extends Object
- Annotations
- @JSType() @native() @JSGlobal()
- Alphabetic
- By Inheritance
- Screen
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Screen()
Value Members
-
def
availHeight: Double
Returns the amount of vertical space available to the window on the screen.
Returns the amount of vertical space available to the window on the screen.
MDN
-
def
availWidth: Double
Returns the amount of horizontal space in pixels available to the window.
Returns the amount of horizontal space in pixels available to the window.
MDN
-
def
colorDepth: Int
Returns the color depth of the screen.
Returns the color depth of the screen.
MDN
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
height: Double
Returns the height of the screen in pixels.
Returns the height of the screen in pixels.
MDN
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
pixelDepth: Int
Returns the bit depth of the screen.
Returns the bit depth of the screen.
MDN
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
valueOf(): Any
- Definition Classes
- Object
-
def
width: Double
Note that not all of the width given by this property may be available to the window itself.
Note that not all of the width given by this property may be available to the window itself. When other widgets occupy space that cannot be used by the window object, there is a difference in window.screen.width and window.screen.availWidth. See also window.screen.height.
MDN