IntRect

data class IntRect(val left: Int, val top: Int, val right: Int, val bottom: Int)(source)

An immutable half-open integer rectangle.

Constructors

Link copied to clipboard
constructor(left: Int, top: Int, right: Int, bottom: Int)

Properties

Link copied to clipboard
val bottom: Int

the exclusive bottom edge.

Link copied to clipboard
val height: Int

The non-negative vertical extent.

Link copied to clipboard
val left: Int

the inclusive left edge.

Link copied to clipboard
val right: Int

the exclusive right edge.

Link copied to clipboard

The rectangle size.

Link copied to clipboard
val top: Int

the inclusive top edge.

Link copied to clipboard
val width: Int

The non-negative horizontal extent.

Functions

Link copied to clipboard
operator fun contains(point: IntOffset): Boolean

Returns whether a coordinate lies inside this half-open rectangle.

Link copied to clipboard
operator fun plus(offset: IntOffset): IntRect

Translates this rectangle with checked coordinate arithmetic.