Trait

io.scalajs.dom.html.pixijs

DisplayObjectContainer

Related Doc: package pixijs

Permalink

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

Linear Supertypes
DisplayObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DisplayObjectContainer
  2. DisplayObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addChild(child: DisplayObject): DisplayObject

    Permalink

    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.

  5. def addChildAt(child: DisplayObject, index: Int): DisplayObject

    Permalink

    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.

  6. var alpha: Alpha

    Permalink

    The alpha value of the group container.

    The alpha value of the group container.

    Definition Classes
    DisplayObject
  7. var anchor: Point

    Permalink

    Definition Classes
    DisplayObject
  8. def angle: Double

    Permalink

    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
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. var cacheAsBitmap: Boolean

    Permalink

    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
  11. def children: Array[DisplayObject]

    Permalink

    Returns the array of children of this container.

    Returns the array of children of this container.

    returns

    the array of children of this container.

  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def contains(child: DisplayObject): Boolean

    Permalink

    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

  14. def destroy(): Unit

    Permalink

    Base destroy method for generic display objects.

    Base destroy method for generic display objects.

    Definition Classes
    DisplayObject
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def getBounds(targetCoordinateSpace: |[PIXI.DisplayObject, PIXI.Matrix] = js.native): Rectangle

    Permalink

    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

  19. def getChildAt(index: Int): DisplayObject

    Permalink

    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.

  20. def getChildIndex(child: DisplayObject): Int

    Permalink

    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

  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def getLocalBounds(): Rectangle

    Permalink

    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

  23. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. var height: Double

    Permalink

    The height of the displayObjectContainer, setting this will actually modify the scale to achieve the value set

  26. var ignoreChildInput: Boolean

    Permalink

    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.

  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  33. def removeChild(child: DisplayObject): DisplayObject

    Permalink

    Removes a child from the container.

    Removes a child from the container.

    child

    The DisplayObject to remove

    returns

    The child that was removed.

  34. def removeChildAt(index: Int): DisplayObject

    Permalink

    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.

  35. def removeChildren(beginIndex: Int, endIndex: Int): Unit

    Permalink

    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.

  36. def setChildIndex(child: DisplayObject, index: Int): Unit

    Permalink

    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

  37. def setParent(container: Container): Container

    Permalink

    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
  38. def swapChildren(child: DisplayObject, child2: DisplayObject): Unit

    Permalink

    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

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toGlobal(position: Point): Point

    Permalink

    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
  41. def toLocal(position: Point, from: DisplayObject = null): Point

    Permalink

    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
  42. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  45. var visible: Boolean

    Permalink

    Definition Classes
    DisplayObject
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. var width: Double

    Permalink

    The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set

  50. def worldTransform: Matrix

    Permalink

    Current transform of the object based on world (parent) factors

    Current transform of the object based on world (parent) factors

    Definition Classes
    DisplayObject
  51. def worldVisible: Boolean

    Permalink

    Indicates if the sprite is globally visible.

    Indicates if the sprite is globally visible.

    Definition Classes
    DisplayObject
  52. def x: Double

    Permalink

    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
  53. def x_=(x: Double): Unit

    Permalink
    Definition Classes
    DisplayObject
  54. def y: Double

    Permalink

    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
  55. def y_=(y: Double): Unit

    Permalink
    Definition Classes
    DisplayObject

Inherited from DisplayObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped