Class: WindowLayer

WindowLayer()

new WindowLayer()

The layer which contains game windows.
Properties:
Name Type Description
voidFilter PIXI.filters.VoidFilter [static]
children Array [super][read-only] The array of children of the window.
parent Object [super][read-only] The object that contains the window.
x Number The x coordinate of the window layer.
y Number The y coordinate of the window layer.
width Number The width of the window layer in pixels.
height Number The height of the window layer in pixels.

Extends

  • PIXI.Container

Methods

addChild(child) → {Object}

[super] Adds a child to the container.
Parameters:
Name Type Description
child Object The child to add
Returns:
The child that was added
Type
Object

addChildAt(child, index) → {Object}

[super] Adds a child to the container at a specified index.
Parameters:
Name Type Description
child Object The child to add
index Number The index to place the child in
Returns:
The child that was added
Type
Object

initialize()

move(x, y, width, height)

Sets the x, y, width, and height all at once.
Parameters:
Name Type Description
x Number The x coordinate of the window layer
y Number The y coordinate of the window layer
width Number The width of the window layer
height Number The height of the window layer

onRemoveAsAChild()

removeChild(child) → {Object}

[super] Removes a child to the container.
Parameters:
Name Type Description
child Object The child to remove
Returns:
The child that was removed
Type
Object

removeChildAt(index) → {Object}

[super] Removes a child from the specified index position.
Parameters:
Name Type Description
index Number The index to get the child from
Returns:
The child that was removed
Type
Object

update()

Updates the window layer for each frame.