Class: ScreenConfig

ScreenConfig

extends ClassConfigBase

This is the class to configure an object which simulates Screen in HTML DOM.

An instance of this class represents a configuration of a monitor device on which a Web browser is displayed.


new ScreenConfig(initConfig)

Creates a new instance of this class.

Parameters:
Name Type Description
initConfig object | ScreenConfig

An object to initialize a new instance.

Properties:
Name Type Description
width number

Full width of a monitor device.

height number

Full height of a monitor device.

availTop number

Top position of available area from top side of a monitor device.

availLeft number

Left position of available area from left side of a monitor device.

availRight number

Right position of available area from right side of a monitor device.

availBottom number

Bottom position of available area from bottom side of a monitor device.

Methods


configure(screen)

Configures a Screen object and associates it with this object.

Parameters:
Name Type Description
screen Screen

a screen object to be configured.

Returns:
Type
Void