Classes
Global | Description |
---|---|
Stage ⇐ PIXI.Container |
Functions
Global | Description |
---|---|
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. |
initialize() | 初始化舞台。 Initializes the stage. |
Stage ⇐ PIXI.Container
Kind: global class
Extends: PIXI.Container
new Stage()
显示树的根对象。
The root object of the display tree.
addChild(child) ⇒ Object
向容器添加子对象。
Adds a child to the container.
Kind: global function
Returns: Object
- 添加的子对象 The child that was added
Param | Type | Description |
---|---|---|
child | Object | 要添加的子对象 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
Param | Type | Description |
---|---|---|
child | Object | 要添加的子对象 The child to add |
index | Number | 放置子对象的索引 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
Param | Type | Description |
---|---|---|
child | Object | 要移除的子对象 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
Param | Type | Description |
---|---|---|
index | Number | 获取子对象的索引 The index to get the child from |
initialize()
初始化舞台。
Initializes the stage.
Kind: global function