PERGOLA LOGO

pergola.Background

System events: YES

User events and functions: NO

Background (color + image) object for desktop, windows, panels. Pergola creates pergola.background for the desktop at runtime.

Listed: class properties/methods; prototype properties and methods; instance properties. Prototype properties and methods inherited by the Class superclass are not listed.

class

None

prototype

PROPERTIES

parent

null – The inherited value for default parent node is overridden in the prototype to ensure that it is specified as instance property in the initialization object.

width

"100%" – string or number (user space units).

height

"100%" – string or number (user space units).

fill

Defined in pergola.presentationAttributes – string.

stroke

Defined in pergola.presentationAttributes – string.

opacity

Defined in pergola.presentationAttributes – string or number.

"xlink:href"

Defined in pergola.presentationAttributes – string (image URL).

display

"block" – string.

"pointer-events"

"visiblePainted" – string.

preserveAspectRatio

"xMidYMid slice" – string.

cursor

"default" – string.

METHODS

build(object)

this inherits the properties specified in object. Prototype properties specified in object are overridden. Creates elements. Returns this.

instance

name

String. If not passed to the constructor, gets a generated XML name (Class).

id

String. The return value of this name.toXML(). This container ID. Used as prefix where other elements' IDs are attributed.

owner

If specified, designates the owner object.

parent

Must be specified in the initialization object to override the prototype's null value.

container

<g> element.

rect

<rect> element.

image

<image> element. Note: the element is always created, even if the "xlink:href" property is not overridden to specify a URL.