Screen

@native @JSGlobal @JSType
class Screen extends Object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

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.

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.

def colorDepth: Int

Returns the color depth of the screen.

Returns the color depth of the screen.

def height: Double

Returns the height of the screen in pixels.

Returns the height of the screen in pixels.

def pixelDepth: Int

Returns the bit depth of the screen.

Returns the bit depth of the screen.

def width: Double

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.

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.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object