The active state for the window
The opacity of the window background (0 to 255)
The bitmap used for the window contents
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
innerHeightnumberreadonly
The height of the content area in pixels
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)
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
The image used as a window skin
addChildToBack(child)object
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 |
addInnerChild(child)object
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
Initializes the window
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 |
move(x, y, width, height)
Sets the x, y, width, and height of the window
Name | Type | Description |
---|
x | number | The new x coordinate of the window |
y | number | The new y coordinate of the window |
width | number | The new width of the window |
height | number | The new 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 |
moveInnerChildrenBy(x, y)
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 |
setCursorRect(x, y, width, height)
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