trait DisplayObjectContainer extends Object with DisplayObject
A DisplayObjectContainer represents a collection of display objects. It is the base class of all display objects that act as a container for other objects.
- Annotations
- @RawJSType() @native()
- See also
http://phaser.io/docs/2.6.2/PIXI.DisplayObjectContainer.html
- Alphabetic
- By Inheritance
- DisplayObjectContainer
- DisplayObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addChild(child: DisplayObject): DisplayObject
Adds a child to the container.
Adds a child to the container.
- child
The DisplayObject to add to the container
- returns
The child that was added.
-
def
addChildAt(child: DisplayObject, index: Int): DisplayObject
Adds a child to the container at a specified index.
Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown
- child
The child to add
- index
The index to place the child in
- returns
The child that was added.
-
val
alpha: Alpha
The alpha value of the group container.
The alpha value of the group container.
- Definition Classes
- DisplayObject
-
val
anchor: Point
- Definition Classes
- DisplayObject
-
def
angle: Double
The angle of rotation of the group container, in degrees.
The angle of rotation of the group container, in degrees. This adjusts the group itself by modifying its local rotation transform. This has no impact on the rotation/angle properties of the children, but it will update their worldTransform and on-screen orientation and position.
- Definition Classes
- DisplayObject
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
cacheAsBitmap: Boolean
Set if this display object is cached as a bitmap.
Set if this display object is cached as a bitmap. This basically takes a snap shot of the display object as it is at that moment. It can provide a performance benefit for complex static displayObjects. To remove simply set this property to 'null'
- Definition Classes
- DisplayObject
-
def
children: Array[DisplayObject]
Returns the array of children of this container.
Returns the array of children of this container.
- returns
the array of children of this container.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
contains(child: DisplayObject): Boolean
Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself.
Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself.
- child
the child to check the existence of
- returns
true if this container contains the given child
-
def
destroy(): Unit
Base destroy method for generic display objects.
Base destroy method for generic display objects.
- Definition Classes
- DisplayObject
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getBounds(targetCoordinateSpace: |[PIXI.DisplayObject, PIXI.Matrix] = js.native): Rectangle
Retrieves the global bounds of the displayObjectContainer as a rectangle.
Retrieves the global bounds of the displayObjectContainer as a rectangle. The bounds calculation takes all visible children into consideration.
- targetCoordinateSpace
Returns a rectangle that defines the area of the display object relative to the coordinate system of the targetCoordinateSpace object.
- returns
The rectangular bounding area
-
def
getChildAt(index: Int): DisplayObject
Returns the child at the specified index
Returns the child at the specified index
- index
the specified index
- returns
The child at the given index, if any.
-
def
getChildIndex(child: DisplayObject): Int
Returns the index position of a child DisplayObject instance
Returns the index position of a child DisplayObject instance
- child
The DisplayObject instance to identify
- returns
The index position of the child display object to identify
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getLocalBounds(): Rectangle
Retrieves the non-global local bounds of the displayObjectContainer as a rectangle without any transformations.
Retrieves the non-global local bounds of the displayObjectContainer as a rectangle without any transformations. The calculation takes all visible children into consideration.
- returns
The rectangular bounding area
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
val
height: Double
The height of the displayObjectContainer, setting this will actually modify the scale to achieve the value set
-
val
ignoreChildInput: Boolean
If ignoreChildInput is false it will allow this objects children to be considered as valid for Input events.
If ignoreChildInput is false it will allow this objects children to be considered as valid for Input events.
If this property is true then the children will not be considered as valid for Input events.
Note that this property isn't recursive: only immediate children are influenced, it doesn't scan further down.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
removeChild(child: DisplayObject): DisplayObject
Removes a child from the container.
Removes a child from the container.
- child
The DisplayObject to remove
- returns
The child that was removed.
-
def
removeChildAt(index: Int): DisplayObject
Removes a child from the specified index position.
Removes a child from the specified index position.
- index
The index to get the child from
- returns
The child that was removed.
-
def
removeChildren(beginIndex: Int, endIndex: Int): Unit
Removes all children from this container that are within the begin and end indexes.
Removes all children from this container that are within the begin and end indexes.
- beginIndex
The beginning position. Default value is 0.
- endIndex
The ending position. Default value is size of the container.
-
def
setChildIndex(child: DisplayObject, index: Int): Unit
Changes the position of an existing child in the display object container
Changes the position of an existing child in the display object container
- child
The child DisplayObject instance for which you want to change the index number
- index
The resulting index number for the child display object
-
def
setParent(container: Container): Container
Set the parent Container of this DisplayObject.
Set the parent Container of this DisplayObject.
- container
The Container to add this DisplayObject to.
- returns
The Container that this DisplayObject was added to.
- Definition Classes
- DisplayObject
-
def
swapChildren(child: DisplayObject, child2: DisplayObject): Unit
Swaps the position of 2 Display Objects within this container.
Swaps the position of 2 Display Objects within this container.
- child
child 1 of 2
- child2
child 2 of 2
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toGlobal(position: Point): Point
Calculates the global position of the display object.
Calculates the global position of the display object.
- position
The world origin to calculate from.
- returns
A point object representing the position of this object.
- Definition Classes
- DisplayObject
-
def
toLocal(position: Point, from: DisplayObject = null): Point
Calculates the local position of the display object relative to another point.
Calculates the local position of the display object relative to another point.
- position
The world origin to calculate from.
- from
The DisplayObject to calculate the global position from.
- returns
A point object representing the position of this object.
- Definition Classes
- DisplayObject
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
val
visible: Boolean
- Definition Classes
- DisplayObject
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
width: Double
The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set
-
def
worldTransform: Matrix
Current transform of the object based on world (parent) factors
Current transform of the object based on world (parent) factors
- Definition Classes
- DisplayObject
-
def
worldVisible: Boolean
Indicates if the sprite is globally visible.
Indicates if the sprite is globally visible.
- Definition Classes
- DisplayObject
-
def
x: Double
The position of the displayObject on the x axis relative to the local coordinates of the parent.
The position of the displayObject on the x axis relative to the local coordinates of the parent.
- Definition Classes
- DisplayObject
-
def
x_=(x: Double): Unit
- Definition Classes
- DisplayObject
-
def
y: Double
The position of the displayObject on the y axis relative to the local coordinates of the parent.
The position of the displayObject on the y axis relative to the local coordinates of the parent.
- Definition Classes
- DisplayObject
-
def
y_=(y: Double): Unit
- Definition Classes
- DisplayObject