Rect

constructor(r: Rect?)

Create a new rectangle, initialized with the values in the specified rectangle (which is left unmodified).

Parameters

r

The rectangle whose coordinates are copied into the new rectangle.


constructor(left: Int = 0, top: Int = 0, right: Int = 0, bottom: Int = 0)

Parameters

left

The X coordinate of the left side of the rectangle

top

The Y coordinate of the top of the rectangle

right

The X coordinate of the right side of the rectangle

bottom

The Y coordinate of the bottom of the rectangle