Class type C-PIXI.container

inherit displayObject
method children: array(displayObject)

The array of children of this container.

method height#=: Js.Internal.meth([ `Arity_1(float) ], unit)

The height of the Container, setting this will actually modify the scale to achieve the value set

method height: float

The height of the Container, setting this will actually modify the scale to achieve the value set

method interactiveChildren#=: Js.Internal.meth([ `Arity_1(bool) ], unit)

Determines if the children to the displayObject can be clicked/touched Setting this to false allows PixiJS to bypass a recursive hitTest function

method interactiveChildren: bool

Determines if the children to the displayObject can be clicked/touched Setting this to false allows PixiJS to bypass a recursive hitTest function

method sortableChildren#=: Js.Internal.meth([ `Arity_1(bool) ], unit)

If set to true, the container will sort its children by zIndex value when updateTransform() is called, or manually if sortChildren() is called. This actually changes the order of elements in the array, so should be treated as a basic solution that is not performant compared to other solutions, such as @link https://github.com/pixijs/pixi-display

Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.

method sortableChildren: bool

If set to true, the container will sort its children by zIndex value when updateTransform() is called, or manually if sortChildren() is called. This actually changes the order of elements in the array, so should be treated as a basic solution that is not performant compared to other solutions, such as @link https://github.com/pixijs/pixi-display

Also be aware of that this may not work nicely with the addChildAt() function, as the zIndex sorting may cause the child to automatically sorted to another position.

method sortDirty#=: Js.Internal.meth([ `Arity_1(bool) ], unit)

Should children be sorted by zIndex at the next updateTransform call. Will get automatically set to true if a new child is added, or if a child's zIndex changes.

method sortDirty: bool

Should children be sorted by zIndex at the next updateTransform call. Will get automatically set to true if a new child is added, or if a child's zIndex changes.

method width#=: Js.Internal.meth([ `Arity_1(float) ], unit)

The width of the Container, setting this will actually modify the scale to achieve the value set

method width: float

The width of the Container, setting this will actually modify the scale to achieve the value set

method addChild: Js.Internal.meth([ `Arity_1(Js.t(displayObject)) ], Js.t(displayObject))

Adds one or more children to the container. Multiple items can be added like so: myContainer.addChild(thingOne, thingTwo, thingThree)

method addChildAt: Js.Internal.meth([ `Arity_2((Js.t(displayObject), int)) ], Js.t(displayObject))

Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown

method calculateBounds: Js.Internal.meth([ `Arity_0 ], unit)

Recalculates the bounds of the container.

method getChildAt: Js.Internal.meth([ `Arity_1(int) ], Js.t(displayObject))

Returns the child at the specified index

method getChildByName: Js.Internal.meth([ `Arity_1(string) ], Js.Nullable.t(Js.t(displayObject)))

Returns the display object in the container.

method getChildIndex: Js.Internal.meth([ `Arity_1(Js.t(displayObject)) ], int)

Returns the index position of a child DisplayObject instance

method removeChild: Js.Internal.meth([ `Arity_1(Js.t(displayObject)) ], Js.t(displayObject))

Removes one or more children from the container.

method removeChildAt: Js.Internal.meth([ `Arity_1(int) ], Js.t(displayObject))

Removes a child from the specified index position.

method removeChildren: Js.Internal.meth([ `Arity_2((int, int)) ], array(Js.t(displayObject)))

Removes all children from this container that are within the begin and end indexes.

method renderCanvas: Js.Internal.meth([ `Arity_1(PIXI.AbstractRenderer.t) ], unit)

Renders the object using the Canvas renderer

method setChildIndex: Js.Internal.meth([ `Arity_2((Js.t(displayObject), int)) ], unit)

Changes the position of an existing child in the display object container

method sortChildren: Js.Internal.meth([ `Arity_0 ], unit)

Sorts children by zIndex. Previous order is mantained for 2 children with the same zIndex.

method swapChildren: Js.Internal.meth([ `Arity_2((Js.t(displayObject), Js.t(displayObject))) ], unit)

Swaps the position of 2 Display Objects within this container.