Class: xrx.canvas.Container

xrx.canvas. Container

(private) new xrx.canvas.Container(canvas)

Abstract Canvas class representing a container.
Parameters:
Name Type Description
canvas xrx.canvas.Canvas The parent canvas object.
Source:

Members

xrx.canvas.Container#childs_ :Array.<xrx.canvas.Element>

The child elements of this container.
Type:
Source:

Methods

xrx.canvas.Container#addChild(element)

Adds a child element to this container.
Parameters:
Name Type Description
element xrx.canvas.Element The child element.
Source:

xrx.canvas.Container#getChildren() → {Array.<xrx.canvas.Element>}

Returns the child elements of this container.
Source:
Returns:
The child elements.
Type
Array.<xrx.canvas.Element>

xrx.canvas.Container#removeChildAt(index)

Removes a child element at an index.
Parameters:
Name Type Description
index number The index.
Source:

xrx.canvas.Container#removeChildren()

Removes all child elements from this container.
Source: