Rect

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

Immutable pixel-coordinate bounding box in screen space. Android screen coordinates: origin top-left, y increases downward.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val bottom: Int

Bottom edge in pixels.

Link copied to clipboard
val height: Int

Height in pixels.

Link copied to clipboard
val left: Int

Left edge in pixels.

Link copied to clipboard
val right: Int

Right edge in pixels.

Link copied to clipboard
val top: Int

Top edge in pixels.

Link copied to clipboard
val width: Int

Width in pixels.

Functions

Link copied to clipboard

Returns true when either dimension is zero or negative.