Trait

io.scalajs.dom.html.phaser.component

Bounds

Related Doc: package component

Permalink

trait Bounds extends Object

The Bounds component contains properties related to the bounds of the Game Object.

Annotations
@RawJSType() @native()
See also

http://phaser.io/docs/2.6.2/Phaser.Component.Bounds.html

Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bounds
  2. Object
  3. Any
  4. AnyRef
  5. 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 alignIn(container: |[|[|[|[|[|[|[Phaser.Rectangle, Phaser.Sprite], Phaser.Image], Phaser.Text], Phaser.BitmapText], Phaser.Button], Phaser.Graphics], Phaser.TileSprite], position: Int = js.native, offsetX: Double = js.native, offsetY: Double = js.native): Object

    Permalink

    Aligns this Game Object to the side of another Game Object, or Rectangle, known as the 'parent', in one of 11 possible positions.

    Aligns this Game Object to the side of another Game Object, or Rectangle, known as the 'parent', in one of 11 possible positions. The parent must be a Game Object, or Phaser.Rectangle object. This can include properties such as World.bounds or Camera.view, for aligning Game Objects within the world and camera bounds. Or it can include other Sprites, Images, Text objects, BitmapText, TileSprites or Buttons. Please note that aligning a Sprite to another Game Object does not make it a child of the parent. It simply modifies its position coordinates so it aligns with it.

    container

    The Game Object or Rectangle with which to align this Game Object to. Can also include properties such as World.bounds or Camera.view

    position

    The position constant. One of Phaser.TOP_LEFT (default), Phaser.TOP_CENTER, Phaser.TOP_RIGHT, Phaser.LEFT_CENTER, Phaser.CENTER, Phaser.RIGHT_CENTER, Phaser.BOTTOM_LEFT, Phaser.BOTTOM_CENTER or Phaser.BOTTOM_RIGHT

    offsetX

    A horizontal adjustment of the Containers bounds, applied to the aligned position of the Game Object. Use a negative value to shrink the bounds, positive to increase it.

    offsetY

    A vertical adjustment of the Containers bounds, applied to the aligned position of the Game Object. Use a negative value to shrink the bounds, positive to increase it.

    returns

    This Game Object.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. var bottom: Double

    Permalink

    The sum of the y and height properties.

    The sum of the y and height properties. This is the same as y + height - offsetY.

  7. var centerX: Double

    Permalink

    The center x coordinate of the Game Object.

    The center x coordinate of the Game Object. This is the same as (x - offsetX) + (width / 2).

  8. var centerY: Double

    Permalink

    The center y coordinate of the Game Object.

    The center y coordinate of the Game Object. This is the same as (y - offsetY) + (height / 2).

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  18. var left: Double

    Permalink

    The left coordinate of the Game Object.

    The left coordinate of the Game Object. This is the same as x - offsetX.

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def offsetX: Double

    Permalink

    The amount the Game Object is visually offset from its x coordinate.

    The amount the Game Object is visually offset from its x coordinate. This is the same as width * anchor.x. It will only be > 0 if anchor.x is not equal to zero.

  23. def offsetY: Double

    Permalink

    The amount the Game Object is visually offset from its y coordinate.

    The amount the Game Object is visually offset from its y coordinate. This is the same as height * anchor.y. It will only be > 0 if anchor.y is not equal to zero.

  24. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  25. var right: Double

    Permalink

    The right coordinate of the Game Object.

    The right coordinate of the Game Object. This is the same as x + width - offsetX.

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

    Permalink
    Definition Classes
    AnyRef
  27. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. var top: Double

    Permalink

    The y coordinate of the Game Object.

    The y coordinate of the Game Object. This is the same as y - offsetY.

  30. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped