PERGOLA LOGO

pergola.ToolBar

System events: YES.

User events and functions: NO.

System component. You can create other instances of this class.

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

pergola.user.

fill

Defined in pergola.presentationAttributes – string.

width

Defined in pergola.presentationAttributes – number (user space units).

height

Defined in pergola.presentationAttributes – number (user space units).

rx

Defined in pergola.presentationAttributes – number (user space units).

advanceX

6 – number (user space units); dynamically updated on each tool addition.

spacing

Defined in pergola.presentationAttributes – number (user space units);

hasDecoration

Defined in pergola.presentationAttributes – boolean; determines whether this should have decoration.

decor

Defined in pergola.presentationAttributes – collection of attributes for this decoration element.

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.

container

<g> element.

bar

<rect> element.

decoration

If this hasDecoration, <rect> element.

groups

Array containing tool group objects with properties: x number; container <g> element; pergola.Separator instance if "separator" is specified in the group's initialization object (see the pergola.Window.addTools() method and the Adding Tools section of the Tutorial).