Liking cljdoc? Tell your friends :D

web.cssdom.Screen

The Screen interface represents a screen, usually the one on the current window is being rendered, and is obtained using window.screen.

The Screen interface represents a screen, usually the one on
the current window is being rendered, and is obtained using `window.screen`.
raw docstring

add-event-listenercljs

(add-event-listener this & args)

Method.

The web.EventTarget method addEventListener() sets up a function will be called whenever the specified event is delivered to the

target.addEventListener(type, listener[, options]); target.addEventListener(type, listener[, useCapture]); target.addEventListener(type, listener[, useCapture, wantsUntrusted ]); // Gecko/Mozilla only

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

Method.

The `web.EventTarget` method addEventListener() sets up a function
will be called whenever the specified event is delivered to the

`target.addEventListener(type, listener[, options]);
target.addEventListener(type, listener[, useCapture]);
target.addEventListener(type, listener[, useCapture, wantsUntrusted  ]); // Gecko/Mozilla only`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener`
sourceraw docstring

avail-heightcljs

(avail-height this)

Property.

The read-only web.cssdom.Screen interface's availHeight property the height, in CSS pixels, of the space available for Web content the screen. Since web.cssdom.Screen is exposed on the web.Window window.screen property, you access availHeight using window.screen.availHeight.

let availHeight = window.screen.availHeight;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight

Property.

The read-only `web.cssdom.Screen` interface's availHeight property
the height, in CSS pixels, of the space available for Web content
the screen. Since `web.cssdom.Screen` is exposed on the `web.Window`
`window.screen` property, you access availHeight using window.screen.availHeight.

`let availHeight = window.screen.availHeight;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight`
sourceraw docstring

avail-leftcljs

(avail-left this)

Property.

Returns the first available pixel available from the left side the screen.

let availLeft = window.screen.availLeft;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft

Property.

Returns the first available pixel available from the left side
the screen.

`let availLeft = window.screen.availLeft;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft`
sourceraw docstring

avail-topcljs

(avail-top this)

Property.

Specifies the y-coordinate of the first pixel that is not allocated permanent or semipermanent user interface features.

let availTop = window.screen.availTop;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop

Property.

Specifies the y-coordinate of the first pixel that is not allocated
permanent or semipermanent user interface features.

`let availTop = window.screen.availTop;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop`
sourceraw docstring

avail-widthcljs

(avail-width this)

Property.

The Screen.availWidth property returns the amount of horizontal (in pixels) available to the window.

var width = window.screen.availWidth

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth

Property.

The Screen.availWidth property returns the amount of horizontal
(in pixels) available to the window.

`var width = window.screen.availWidth`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth`
sourceraw docstring

color-depthcljs

(color-depth this)

Property.

The Screen.colorDepth read-only property returns the color depth the screen. Per the CSSOM, some implementations return 24 for reasons. See the browser compatibility section for those that

bitDepth = window.screen.colorDepth;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth

Property.

The Screen.colorDepth read-only property returns the color depth
the screen. Per the CSSOM, some implementations return 24 for
reasons. See the browser compatibility section for those that

`bitDepth = window.screen.colorDepth;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth`
sourceraw docstring

heightcljs

(height this)

Property.

The Screen.height read-only property returns the height of the in pixels.

var height = window.screen.height

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/height

Property.

The Screen.height read-only property returns the height of the
in pixels.

`var height = window.screen.height`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/height`
sourceraw docstring

leftcljs

(left this)

Property.

Returns the distance in pixels from the left side of the main to the left side of the current screen.

var left = window.screen.left;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/left

Property.

Returns the distance in pixels from the left side of the main
to the left side of the current screen.

`var left = window.screen.left;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/left`
sourceraw docstring

lock-orientationcljs

(lock-orientation this orientation)

Method.

The lockOrientation() method of the web.cssdom.Screen interface the screen into a specified orientation. The ScreenOrientation.lock() should be used instead.

lockAllowed = window.screen.lockOrientation(orientation);

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation

Method.

The lockOrientation() method of the `web.cssdom.Screen` interface
the screen into a specified orientation. The `ScreenOrientation.lock()`
should be used instead.

`lockAllowed = window.screen.lockOrientation(orientation);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation`
sourceraw docstring

moz-brightnesscljs

(moz-brightness this)

Property.

Indicates how bright the screen's backlight is, on a scale from (very dim) to 1 (full brightness); this value is a double-precision

let screenBrightness = window.screen.mozBrightness;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness

Property.

Indicates how bright the screen's backlight is, on a scale from
(very dim) to 1 (full brightness); this value is a double-precision

`let screenBrightness = window.screen.mozBrightness;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness`
sourceraw docstring

moz-enabledcljs

(moz-enabled this)

Property.

This Boolean attribute controls the device's screen. Setting to false will turn off the screen.

let screenEnabled = window.screen.mozEnabled

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled

Property.

This Boolean attribute controls the device's screen. Setting
to false will turn off the screen.

`let screenEnabled = window.screen.mozEnabled`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled`
sourceraw docstring

onorientationchangecljs

(onorientationchange this)

Property.

An event handler for the orientationchange events sent to the object. The ScreenOrientation.onchange handler should be used

`screen.onorientationchange = funcRef;

Where funcRef is a reference to a function.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange

Property.

An event handler for the orientationchange events sent to the
object. The `ScreenOrientation.onchange` handler should be used

`screen.onorientationchange = funcRef;

Where funcRef is a reference to a function.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange`
sourceraw docstring

orientationcljs

(orientation this)

Property.

The orientation read-only property of the web.cssdom.Screen returns the current orientation of the screen.

var orientation = window.screen.orientation;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation

Property.

The orientation read-only property of the `web.cssdom.Screen`
returns the current orientation of the screen.

`var orientation = window.screen.orientation;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation`
sourceraw docstring

pixel-depthcljs

(pixel-depth this)

Property.

Returns the bit depth of the screen. Per the CSSOM, some implementations 24 for compatibility reasons. See the browser compatibility section those that don't.

let depth = window.screen.pixelDepth

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth

Property.

Returns the bit depth of the screen. Per the CSSOM, some implementations
24 for compatibility reasons. See the browser compatibility section
those that don't.

`let depth = window.screen.pixelDepth`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth`
sourceraw docstring

set-avail-height!cljs

(set-avail-height! this val)

Property.

The read-only web.cssdom.Screen interface's availHeight property the height, in CSS pixels, of the space available for Web content the screen. Since web.cssdom.Screen is exposed on the web.Window window.screen property, you access availHeight using window.screen.availHeight.

let availHeight = window.screen.availHeight;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight

Property.

The read-only `web.cssdom.Screen` interface's availHeight property
the height, in CSS pixels, of the space available for Web content
the screen. Since `web.cssdom.Screen` is exposed on the `web.Window`
`window.screen` property, you access availHeight using window.screen.availHeight.

`let availHeight = window.screen.availHeight;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight`
sourceraw docstring

set-avail-left!cljs

(set-avail-left! this val)

Property.

Returns the first available pixel available from the left side the screen.

let availLeft = window.screen.availLeft;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft

Property.

Returns the first available pixel available from the left side
the screen.

`let availLeft = window.screen.availLeft;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft`
sourceraw docstring

set-avail-top!cljs

(set-avail-top! this val)

Property.

Specifies the y-coordinate of the first pixel that is not allocated permanent or semipermanent user interface features.

let availTop = window.screen.availTop;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop

Property.

Specifies the y-coordinate of the first pixel that is not allocated
permanent or semipermanent user interface features.

`let availTop = window.screen.availTop;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop`
sourceraw docstring

set-avail-width!cljs

(set-avail-width! this val)

Property.

The Screen.availWidth property returns the amount of horizontal (in pixels) available to the window.

var width = window.screen.availWidth

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth

Property.

The Screen.availWidth property returns the amount of horizontal
(in pixels) available to the window.

`var width = window.screen.availWidth`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth`
sourceraw docstring

set-color-depth!cljs

(set-color-depth! this val)

Property.

The Screen.colorDepth read-only property returns the color depth the screen. Per the CSSOM, some implementations return 24 for reasons. See the browser compatibility section for those that

bitDepth = window.screen.colorDepth;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth

Property.

The Screen.colorDepth read-only property returns the color depth
the screen. Per the CSSOM, some implementations return 24 for
reasons. See the browser compatibility section for those that

`bitDepth = window.screen.colorDepth;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth`
sourceraw docstring

set-height!cljs

(set-height! this val)

Property.

The Screen.height read-only property returns the height of the in pixels.

var height = window.screen.height

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/height

Property.

The Screen.height read-only property returns the height of the
in pixels.

`var height = window.screen.height`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/height`
sourceraw docstring

set-left!cljs

(set-left! this val)

Property.

Returns the distance in pixels from the left side of the main to the left side of the current screen.

var left = window.screen.left;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/left

Property.

Returns the distance in pixels from the left side of the main
to the left side of the current screen.

`var left = window.screen.left;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/left`
sourceraw docstring

set-moz-brightness!cljs

(set-moz-brightness! this val)

Property.

Indicates how bright the screen's backlight is, on a scale from (very dim) to 1 (full brightness); this value is a double-precision

let screenBrightness = window.screen.mozBrightness;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness

Property.

Indicates how bright the screen's backlight is, on a scale from
(very dim) to 1 (full brightness); this value is a double-precision

`let screenBrightness = window.screen.mozBrightness;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness`
sourceraw docstring

set-moz-enabled!cljs

(set-moz-enabled! this val)

Property.

This Boolean attribute controls the device's screen. Setting to false will turn off the screen.

let screenEnabled = window.screen.mozEnabled

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled

Property.

This Boolean attribute controls the device's screen. Setting
to false will turn off the screen.

`let screenEnabled = window.screen.mozEnabled`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled`
sourceraw docstring

set-onorientationchange!cljs

(set-onorientationchange! this val)

Property.

An event handler for the orientationchange events sent to the object. The ScreenOrientation.onchange handler should be used

`screen.onorientationchange = funcRef;

Where funcRef is a reference to a function.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange

Property.

An event handler for the orientationchange events sent to the
object. The `ScreenOrientation.onchange` handler should be used

`screen.onorientationchange = funcRef;

Where funcRef is a reference to a function.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange`
sourceraw docstring

set-pixel-depth!cljs

(set-pixel-depth! this val)

Property.

Returns the bit depth of the screen. Per the CSSOM, some implementations 24 for compatibility reasons. See the browser compatibility section those that don't.

let depth = window.screen.pixelDepth

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth

Property.

Returns the bit depth of the screen. Per the CSSOM, some implementations
24 for compatibility reasons. See the browser compatibility section
those that don't.

`let depth = window.screen.pixelDepth`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth`
sourceraw docstring

set-top!cljs

(set-top! this val)

Property.

Returns the distance in pixels from the top side of the current

let top = window.screen.top;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/top

Property.

Returns the distance in pixels from the top side of the current

`let top = window.screen.top;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/top`
sourceraw docstring

set-width!cljs

(set-width! this val)

Property.

Returns the width of the screen.

lWidth = window.screen.width

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/width

Property.

Returns the width of the screen.

`lWidth = window.screen.width`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/width`
sourceraw docstring

topcljs

(top this)

Property.

Returns the distance in pixels from the top side of the current

let top = window.screen.top;

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/top

Property.

Returns the distance in pixels from the top side of the current

`let top = window.screen.top;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/top`
sourceraw docstring

unlock-orientationcljs

(unlock-orientation this)

Method.

The Screen.unlockOrientation() method removes all the previous locks set by the page/app. The ScreenOrientation.unlock() method be used instead.

var unlocked = window.screen.unlockOrientation();

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/unlockOrientation

Method.

The Screen.unlockOrientation() method removes all the previous
locks set by the page/app. The `ScreenOrientation.unlock()` method
be used instead.

`var unlocked = window.screen.unlockOrientation();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/unlockOrientation`
sourceraw docstring

widthcljs

(width this)

Property.

Returns the width of the screen.

lWidth = window.screen.width

See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/width

Property.

Returns the width of the screen.

`lWidth = window.screen.width`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/width`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close