Extends
- PIXI.Container
Members
-
The active state for the window.
-
The opacity of the window background (0 to 255).
-
contents Bitmap
-
The bitmap used for the window contents.
-
contentsBack Bitmap
-
The bitmap used for the window contents background.
-
The opacity of the window contents (0 to 255).
-
The visibility of the cursor.
-
The visibility of the down scroll arrow.
-
The visibility of the frame.
-
The height of the window in pixels.
-
The height of the content area in pixels.
-
innerRect Rectangle readonly
-
The rectangle of the content area.
-
The width of the content area in pixels.
-
The size of the margin for the window background.
-
The opacity of the window without contents (0 to 255).
-
The openness of the window (0 to 255).
-
origin Point
-
The origin point of the window for scrolling.
-
The size of the padding between the frame and contents.
-
The visibility of the pause sign.
-
The visibility of the up scroll arrow.
-
The width of the window in pixels.
-
windowskin Bitmap
-
The image used as a window skin.
Methods
-
Adds a child between the background and contents.
Name Type Description child
object The child to add.
Returns:
Type Description object The child that was added. -
Adds a child to the client area.
Name Type Description child
object The child to add.
Returns:
Type Description object The child that was added. -
Destroys the window.
-
Draws the window shape into PIXI.Graphics object. Used by WindowLayer.
-
Checks whether the window is completely closed (openness == 0).
Returns:
Type Description boolean True if the window is closed. -
Checks whether the window is completely open (openness == 255).
Returns:
Type Description boolean True if the window is open. -
Sets the x, y, width, and height all at once.
Name Type Description x
number The x coordinate of the window.
y
number The y coordinate of the window.
width
number The width of the window.
height
number The height of the window.
-
Moves the cursor position by the given amount.
Name Type Description x
number The amount of horizontal movement.
y
number The amount of vertical movement.
-
Moves the inner children by the given amount.
Name Type Description x
number The amount of horizontal movement.
y
number The amount of vertical movement.
-
Sets the position of the command cursor.
Name Type Description x
number The x coordinate of the cursor.
y
number The y coordinate of the cursor.
width
number The width of the cursor.
height
number The height of the cursor.
-
Changes the color of the background.
Name Type Description r
number The red value in the range (-255, 255).
g
number The green value in the range (-255, 255).
b
number The blue value in the range (-255, 255).
-
Updates the window for each frame.
-
Updates the transform on all children of this container for rendering.