WindowLayer Class
Layer which contains game windows.
Constructor
WindowLayer ()
Item Index
Methods PropertiesMethods
addChild ( child ) Object
Adds a child to the container.
Parameters:
-
child
ObjectThe child to add
Returns:
Object:
The child that was added
addChildAt ( child index ) Object
Adds a child to the container.
Parameters:
-
child
ObjectThe child to add
-
index
NumberThe 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
NumberThe x coordinate of the window layer
-
y
NumberThe y coordinate of the window layer
-
width
NumberThe width of the window layer
-
height
NumberThe height of the window layer
removeChild ( child ) Object
Removes a child from the container.
Parameters:
-
child
ObjectThe child to remove
Returns:
Object:
The child that was removed
removeChildAt ( index ) Object
Removes a child from the specified index position.
Parameters:
-
index
NumberThe 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.