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