Rectangle

indigo.shared.datatypes.Rectangle
See theRectangle companion object
final case class Rectangle(position: Point, size: Size)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(rect: Rectangle): Rectangle
def *(i: Int): Rectangle
def *(d: Double): Rectangle
def +(rect: Rectangle): Rectangle
def +(i: Int): Rectangle
def +(d: Double): Rectangle
def -(rect: Rectangle): Rectangle
def -(i: Int): Rectangle
def -(d: Double): Rectangle
def /(rect: Rectangle): Rectangle
def /(i: Int): Rectangle
def /(d: Double): Rectangle
def contains(pt: Point): Boolean
def contains(x: Int, y: Int): Boolean
def contract(amount: Int): Rectangle
def encompasses(other: Rectangle): Boolean
def expand(amount: Int): Rectangle
def isPointWithin(pt: Point): Boolean
def isPointWithin(x: Int, y: Int): Boolean
def moveBy(point: Point): Rectangle
def moveBy(x: Int, y: Int): Rectangle
def moveTo(point: Point): Rectangle
def moveTo(x: Int, y: Int): Rectangle
def overlaps(other: Rectangle): Boolean
def overlaps(other: Circle): Boolean
def resize(newSize: Size): Rectangle
def resize(x: Int, y: Int): Rectangle
def resize(value: Int): Rectangle
def resizeBy(amount: Size): Rectangle
def resizeBy(x: Int, y: Int): Rectangle
def resizeBy(amount: Int): Rectangle
def withPosition(x: Int, y: Int): Rectangle
def withSize(newSize: Size): Rectangle
def withSize(x: Int, y: Int): Rectangle

Deprecated methods

Attributes

Deprecated
true

Attributes

Deprecated
true

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val bottom: Int
lazy val bottomLeft: Point
lazy val bottomRight: Point
lazy val center: Point
lazy val corners: Batch[Point]
lazy val halfSize: Size
lazy val height: Int
lazy val horizontalCenter: Int
lazy val left: Int
lazy val right: Int
lazy val top: Int
lazy val topLeft: Point
lazy val topRight: Point
lazy val verticalCenter: Int
lazy val width: Int
lazy val x: Int
lazy val y: Int