and

infix inline fun Path.and(p: Path): Path(source)

Returns the intersection of two paths as a new Path. If the paths do not intersect, returns an empty path.


infix inline fun Rect.and(r: Rect): Rect(source)
infix inline fun RectF.and(r: RectF): RectF(source)

Returns the intersection of two rectangles as a new rectangle. If the rectangles do not intersect, returns a copy of the left hand side rectangle.


infix inline fun Region.and(r: Rect): Region(source)

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


infix inline fun Region.and(r: Region): Region(source)

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