(private) new xrx.canvas.Container(canvas)
Abstract Canvas class representing a container.
Parameters:
Name | Type | Description |
---|---|---|
canvas |
xrx.canvas.Canvas | The parent canvas object. |
Members
-
xrx.canvas.Container#childs_ :Array.<xrx.canvas.Element>
-
The child elements of this container.
Type:
- Array.<xrx.canvas.Element>
Methods
-
xrx.canvas.Container#addChild(element)
-
Adds a child element to this container.
Parameters:
Name Type Description element
xrx.canvas.Element The child element. -
xrx.canvas.Container#getChildren() → {Array.<xrx.canvas.Element>}
-
Returns the child elements of this container.
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. -
xrx.canvas.Container#removeChildren()
-
Removes all child elements from this container.