set

Set the rectangle's coordinates to the specified values. Note: no range checking is performed, so it is up to the caller to ensure that left <= right and top <= bottom.

Parameters

bottom

The Y coordinate of the bottom of the rectangle

left

The X coordinate of the left side of the rectangle

right

The X coordinate of the right side of the rectangle

top

The Y coordinate of the top of the rectangle

open fun set(ref: RectF, left: Float, top: Float, right: Float, bottom: Float)

Set the rectangle's coordinates to the specified values. Note: no range checking is performed, so it is up to the caller to ensure that left <= right and top <= bottom.

Parameters

bottom

The Y coordinate of the bottom of the rectangle

left

The X coordinate of the left side of the rectangle

right

The X coordinate of the right side of the rectangle

top

The Y coordinate of the top of the rectangle

open fun set(ref: Rect, left: Float, top: Float, right: Float, bottom: Float)

Set the rectangle's coordinates to the specified values. Note: no range checking is performed, so it is up to the caller to ensure that left <= right and top <= bottom.

Parameters

bottom

The Y coordinate of the bottom of the rectangle

left

The X coordinate of the left side of the rectangle

right

The X coordinate of the right side of the rectangle

top

The Y coordinate of the top of the rectangle

open fun set(left: Double, top: Double, right: Double, bottom: Double)

Copy the coordinates from src into this rectangle.

Parameters

src

The rectangle whose coordinates are copied into this rectangle.

open fun set(src: RelativeRectFast)

Copy the coordinates from src into this rectangle.

Parameters

src

The rectangle whose coordinates are copied into this rectangle.

open fun set(ref: RectF, src: RectF)

Copy the coordinates from src into this rectangle.

Parameters

src

The rectangle whose coordinates are copied into this rectangle.

open fun set(ref: RectF, src: Rect)

Copy the coordinates from src into this rectangle.

Parameters

src

The rectangle whose coordinates are copied into this rectangle.

open fun set(ref: Rect, src: Rect)

Copy the coordinates from src into this rectangle.

Parameters

src

The rectangle whose coordinates are copied into this rectangle.

open fun set(ref: Rect, src: RectF)