Class/Object

io.scalajs.dom.html.phaser

Rectangle

Related Docs: object Rectangle | package phaser

Permalink

class Rectangle extends Object

Creates a new Rectangle object with the top-left corner specified by the x and y parameters and with the specified width and height parameters. If you call this function without parameters, a Rectangle with x, y, width, and height properties set to 0 is created.

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rectangle
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Rectangle(x: Int, y: Int, width: Int, height: Int)

    Permalink

    x

    The x coordinate of the top-left corner of the Rectangle.

    y

    The y coordinate of the top-left corner of the Rectangle.

    width

    The width of the Rectangle. Should always be either zero or a positive value.

    height

    The height of the Rectangle. Should always be either zero or a positive value.

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

    Permalink
    Definition Classes
    Any
  5. var bottom: Double

    Permalink

    The sum of the y and height properties.

    The sum of the y and height properties. Changing the bottom property of a Rectangle object has no effect on the x, y and width properties, but does change the height property.

  6. var bottomLeft: Point

    Permalink

    The location of the Rectangles bottom left corner as a Point object.

    The location of the Rectangles bottom left corner as a Point object. Gets or sets the location of the Rectangles bottom left corner as a Point object.

  7. var bottomRight: Point

    Permalink

    The location of the Rectangles bottom right corner as a Point object.

    The location of the Rectangles bottom right corner as a Point object. Gets or sets the location of the Rectangles bottom right corner as a Point object.

  8. var centerX: Double

    Permalink

    The x coordinate of the center of the Rectangle.

  9. var centerY: Double

    Permalink

    The y coordinate of the center of the Rectangle.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. var empty: Boolean

    Permalink

    Determines whether or not this Rectangle object is empty.

    Determines whether or not this Rectangle object is empty. A Rectangle object is empty if its width or height is less than or equal to 0. If set to true then all of the Rectangle properties are set to 0. Gets or sets the Rectangles empty state.

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def halfHeight: Double

    Permalink

    Half of the height of the Rectangle.

  17. def halfWidth: Double

    Permalink

    Half of the width of the Rectangle.

  18. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. var height: Int

    Permalink

    The height of the Rectangle.

    The height of the Rectangle. Should always be either zero or a positive value.

  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  23. var left: Double

    Permalink

    The x coordinate of the left of the Rectangle.

    The x coordinate of the left of the Rectangle. Changing the left property of a Rectangle object has no effect on the y and height properties. However it does affect the width property, whereas changing the x value does not affect the width property.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def perimeter: Double

    Permalink

    The perimeter size of the Rectangle.

    The perimeter size of the Rectangle. This is the sum of all 4 sides.

  28. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  29. var randomX: Double

    Permalink

    A random value between the left and right values (inclusive) of the Rectangle.

  30. var randomY: Double

    Permalink

    A random value between the top and bottom values (inclusive) of the Rectangle.

  31. var right: Double

    Permalink

    The sum of the x and width properties.

    The sum of the x and width properties. Changing the right property of a Rectangle object has no effect on the x, y and height properties, however it does affect the width property.

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

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

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

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

    Permalink

    The y coordinate of the top of the Rectangle.

    The y coordinate of the top of the Rectangle. Changing the top property of a Rectangle object has no effect on the x and width properties. However it does affect the height property, whereas changing the y value does not affect the height property.

  36. var topLeft: Point

    Permalink

    The location of the Rectangles top left corner as a Point object.

  37. var topRight: Point

    Permalink

    The location of the Rectangles top right corner as a Point object.

    The location of the Rectangles top right corner as a Point object. The location of the Rectangles top left corner as a Point object.

  38. def type: Int

    Permalink

    The const type of this object.

  39. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  40. def volume: Double

    Permalink

    The volume of the Rectangle derived from width * height.

  41. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. var width: Int

    Permalink

    The width of the Rectangle.

    The width of the Rectangle. Should always be either zero or a positive value.

  45. var x: Int

    Permalink

    The x coordinate of the top-left corner of the Rectangle.

  46. var y: Int

    Permalink

    The y coordinate of the top-left corner of the Rectangle.

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped