core-ktx / androidx.graphics / android.graphics.Rect / plus

plus

inline operator fun Rect.plus(r: Rect): Rect

Performs the union of this rectangle and the specified rectangle and returns the result as a new rectangle.

inline operator fun Rect.plus(xy: Int): Rect

Returns a new rectangle representing this rectangle offset by the specified amount on both X and Y axis.

inline operator fun Rect.plus(xy: Point): Rect

Returns a new rectangle representing this rectangle offset by the specified point.