Skip to content

Classes

GlobalDescription
WindowLayerPIXI.Container

Functions

GlobalDescription
addChild(child)Object

向容器中添加子对象。 Adds a child to the container.

addChildAt(child, index)Object

在指定索引处向容器中添加子对象。 Adds a child to the container at a specified index.

removeChild(child)Object

从容器中移除子对象。 Removes a child from the container.

removeChildAt(index)Object

从指定索引位置移除子对象。 Removes a child from the specified index position.

move(x, y, width, height)

同时设置 x、y、宽度和高度。 Sets the x, y, width, and height all at once.

update()

每帧更新窗口层。 Updates the window layer for each frame.

WindowLayer ⇐ PIXI.Container

Kind: global class
Extends: PIXI.Container


new WindowLayer()

包含游戏窗口的层。
The layer which contains game windows.


addChild(child) ⇒ Object

向容器中添加子对象。
Adds a child to the container.

Kind: global function
Returns: Object - 被添加的子对象 The child that was added

ParamTypeDescription
childObject要添加的子对象 The child to add

addChildAt(child, index) ⇒ Object

在指定索引处向容器中添加子对象。
Adds a child to the container at a specified index.

Kind: global function
Returns: Object - 被添加的子对象 The child that was added

ParamTypeDescription
childObject要添加的子对象 The child to add
indexNumber放置子对象的索引 The index to place the child in

removeChild(child) ⇒ Object

从容器中移除子对象。
Removes a child from the container.

Kind: global function
Returns: Object - 被移除的子对象 The child that was removed

ParamTypeDescription
childObject要移除的子对象 The child to remove

removeChildAt(index) ⇒ Object

从指定索引位置移除子对象。
Removes a child from the specified index position.

Kind: global function
Returns: Object - 被移除的子对象 The child that was removed

ParamTypeDescription
indexNumber获取子对象的索引 The index to get the child from

move(x, y, width, height)

同时设置 x、y、宽度和高度。
Sets the x, y, width, and height all at once.

Kind: global function

ParamTypeDescription
xNumber窗口层的 x 坐标 The x coordinate of the window layer
yNumber窗口层的 y 坐标 The y coordinate of the window layer
widthNumber窗口层的宽度 The width of the window layer
heightNumber窗口层的高度 The height of the window layer

update()

每帧更新窗口层。
Updates the window layer for each frame.

Kind: global function


贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新