Companion

Properties

Link copied to clipboard

The rectangle at the Origin with width and height equal to 0

Functions

Link copied to clipboard
operator fun invoke(): Rectangle

operator fun invoke(size: Size): Rectangle

Creates a Rectangle at the Origin: [0, 0, size.width, size.height]

operator fun invoke(position: Point, size: Size): Rectangle

Creates a Rectangle: [position.x, position.y, size.width, size.height]

operator fun invoke(width: Double, height: Double = width): Rectangle
operator fun invoke(width: Float, height: Float = width): Rectangle
operator fun invoke(width: Int, height: Int = width): Rectangle

Creates a Rectangle at the Origin: [0, 0, width, height]

operator fun invoke(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0): Rectangle
operator fun invoke(x: Float = 0.0f, y: Float = 0.0f, width: Float = 0.0f, height: Float = 0.0f): Rectangle
operator fun invoke(x: Int = 0, y: Int = 0, width: Int = 0, height: Int = 0): Rectangle

Creates a Rectangle: [x, y, width, height]