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.

[Read Only]

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.

[Read Only]

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.

[Non Standard]

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.

[Non Standard]

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.

[Non Standard]

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.

[Non Standard]

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.

[Read Only]

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.

[Read Only]

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

dispatch-eventcljs

(dispatch-event this event)

Method.

Dispatches an web.event.Event at the specified web.EventTarget, invoking the affected web.EventListeners in the appropriate The normal event processing rules (including the capturing and bubbling phase) also apply to events dispatched manually with

cancelled = !target.dispatchEvent(event)

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

Method.

Dispatches an `web.event.Event` at the specified `web.EventTarget`,
invoking the affected `web.EventListener`s in the appropriate
The normal event processing rules (including the capturing and
bubbling phase) also apply to events dispatched manually with

`cancelled = !target.dispatchEvent(event)`

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

heightcljs

(height this)

Property.

[Read Only]

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.

[Read Only]

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.

[Non Standard]

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.

[Non Standard]

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.

[Deprecated]

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.

[Deprecated]

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.

[Deprecated] [Non Standard]

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.

[Deprecated]
[Non Standard]

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.

[Deprecated] [Non Standard]

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.

[Deprecated]
[Non Standard]

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.

[Deprecated]

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.

[Deprecated]

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.

[Read Only] [Experimental]

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.

[Read Only]
[Experimental]

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

remove-event-listenercljs

(remove-event-listener this & args)

Method.

The EventTarget.removeEventListener() method removes from the an event listener previously registered with EventTarget.addEventListener(). event listener to be removed is identified using a combination the event type, the event listener function itself, and various options that may affect the matching process; see Matching event for removal

target.removeEventListener(type, listener[, options]); target.removeEventListener(type, listener[, useCapture]);

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

Method.

The EventTarget.removeEventListener() method removes from the
an event listener previously registered with `EventTarget.addEventListener()`.
event listener to be removed is identified using a combination
the event type, the event listener function itself, and various
options that may affect the matching process; see Matching event
for removal

`target.removeEventListener(type, listener[, options]);
target.removeEventListener(type, listener[, useCapture]);`

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

set-avail-left!cljs

(set-avail-left! this val)

Property.

[Non Standard]

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.

[Non Standard]

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.

[Non Standard]

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.

[Non Standard]

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-left!cljs

(set-left! this val)

Property.

[Non Standard]

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.

[Non Standard]

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.

[Deprecated] [Non Standard]

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.

[Deprecated]
[Non Standard]

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.

[Deprecated] [Non Standard]

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.

[Deprecated]
[Non Standard]

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.

[Deprecated]

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.

[Deprecated]

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.

[Non Standard]

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.

[Non Standard]

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.

[Non Standard]

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.

[Non Standard]

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.

[Deprecated]

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.

[Deprecated]

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