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

minus

inline operator fun Rect.minus(r: Rect): Region

Returns the difference of this rectangle and the specified rectangle as a new region.

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

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

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

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