minus

inline operator fun Path.minus(p: Path): Path

Returns the difference of two paths as a new Path.


inline operator fun Point.minus(p: Point): Point
inline operator fun PointF.minus(p: PointF): PointF

Offsets this point by the negation of the specified point and returns the result as a new point.


inline operator fun Point.minus(xy: Int): Point
inline operator fun PointF.minus(xy: Float): PointF

Offsets this point by the negation of the specified amount on both X and Y axis and returns the result as a new point.


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 RectF.minus(r: RectF): Region

Returns the difference of this rectangle and the specified rectangle as a new region. This rectangle is first converted to a Rect using RectF.toRect.


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

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
inline operator fun RectF.minus(xy: PointF): RectF

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


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

Return the difference of this region and the specified Rect as a new region.


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

Return the difference of this region and the specified region as a new region.