WindowLayer Class

Layer which contains game windows.

Constructor

WindowLayer ()

Item Index

Methods Properties

Methods

addChild ( child ) Object

Adds a child to the container.

Parameters:

  • child Object

    The child to add

Returns:

Object:
The child that was added

addChildAt ( child  index ) Object

Adds a child to the container.

Parameters:

  • child Object

    The child to add

  • index Number

    The index to place the child in

Returns:

Object:
The child that was added

move ( x , y , width , height )

Sets the x, y, width, and height all at once.

Parameters:

  • 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

removeChild ( child ) Object

Removes a child from the container.

Parameters:

  • child Object

    The child to remove

Returns:

Object:
The child that was removed

removeChildAt ( index ) Object

Removes a child from the specified index position.

Parameters:

  • index Number

    The index to get the child from

Returns:

Object:
The child that was removed

update ()

Updates the window layer for each frame.

Properties

children Array

[read-only] The array of children of the window layer.

height Number

The height of the window layer in pixels.

parent Object

[read-only] The object that contains the window layer.

width Number

The width of the window layer in pixels.

x Number

The x coordinate of the window layer.

y Number

The y coordinate of the window layer.