Class

io.scalajs.dom.html.pixijs

Sprite

Related Doc: package pixijs

Permalink

class Sprite extends Container

Annotations
@RawJSType() @native() @JSName( "PIXI.Sprite" )
Linear Supertypes
Container, DisplayObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sprite
  2. Container
  3. DisplayObject
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Sprite()

    Permalink

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.

    Definition Classes
    Container
  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 DisplayObject to add to the container.

    index

    The index to place the child in

    returns

    The child that was added.

    Definition Classes
    Container
  6. var alpha: Alpha

    Permalink

    The alpha value of the group container.

    The alpha value of the group container.

    Definition Classes
    DisplayObject
  7. var alphanumber: Double

    Permalink

    The opacity of the object.

    The opacity of the object.

    Definition Classes
    Container
  8. var anchor: Point

    Permalink

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

    Permalink
    Definition Classes
    Any
  11. 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
  12. def children: Array[DisplayObject]

    Permalink

    The array of children of this container.

    The array of children of this container.

    Definition Classes
    Container
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def destroy(destroyChildren: Boolean): Unit

    Permalink

    Destroys the container

    Destroys the container

    destroyChildren

    optional: if set to true, all the children will have their destroy method called as well

    Definition Classes
    Container
  15. def destroy(): Unit

    Permalink

    Base destroy method for generic display objects.

    Base destroy method for generic display objects.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. var filterArea: Rectangle

    Permalink

    The area the filter is applied to.

    The area the filter is applied to. This is used as more of an optimisation rather than figuring out the dimensions of the displayObject each frame you can set this rectangle.

    Definition Classes
    Container
  19. var filters: Array[AbstractFilter]

    Permalink

    Sets the filters for the displayObject.

    Sets the filters for the displayObject. IMPORTANT: This is a webGL only feature and will be ignored by the canvas renderer. To remove filters simply set this property to 'null'

    Definition Classes
    Container
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hasOwnProperty(v: String): Boolean

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

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

    Permalink

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

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

    Definition Classes
    Container
  25. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  27. var mask: |[Graphics, Sprite]

    Permalink

    Sets a mask for the displayObject.

    Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. In PIXI a regular mask must be a PIXI.Graphics or a PIXI.Sprite object. This allows for much faster masking in canvas as it utilises shape clipping. To remove a mask, set this property to null.

    Definition Classes
    Container
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def parent: Container

    Permalink

    The display object container that contains this display object.

    The display object container that contains this display object.

    Definition Classes
    Container
  32. var pivot: Point

    Permalink

    The pivot point of the displayObject that it rotates around

    The pivot point of the displayObject that it rotates around

    Definition Classes
    Container
  33. var position: Point

    Permalink

    The coordinate of the object relative to the local coordinates of the parent.

    The coordinate of the object relative to the local coordinates of the parent.

    Definition Classes
    Container
  34. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  35. var renderable: Boolean

    Permalink

    Can this object be rendered, if false the object will not be drawn but the updateTransform methods will still be called.

    Can this object be rendered, if false the object will not be drawn but the updateTransform methods will still be called.

    Definition Classes
    Container
  36. var rotation: Double

    Permalink

    The rotation of the object in radians.

    The rotation of the object in radians.

    Definition Classes
    Container
  37. var scale: Point

    Permalink

    The scale factor of the object.

    The scale factor of the object.

    Definition Classes
    Container
  38. 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
  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 Container, setting this will actually modify the scale to achieve the value set.

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

    Definition Classes
    Container
  50. def worldAlpha: Alpha

    Permalink

    The multiplied alpha of the displayObject.

    The multiplied alpha of the displayObject.

    Definition Classes
    Container
  51. 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
  52. def worldVisible: Boolean

    Permalink

    Indicates if the sprite is globally visible.

    Indicates if the sprite is globally visible.

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

    Permalink
    Definition Classes
    DisplayObject
  55. 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
  56. def y_=(y: Double): Unit

    Permalink
    Definition Classes
    DisplayObject

Inherited from Container

Inherited from DisplayObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped