RegionKt

public final class RegionKt


Summary

Public methods

static final @NonNull Region
RegionKt.and(Region receiver, Rect r)

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

static final @NonNull Region
RegionKt.and(Region receiver, Region r)

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

static final boolean
RegionKt.contains(Region receiver, Point p)

Return true if the region contains the specified Point.

static final void
RegionKt.forEach(Region receiver, Function1<RectUnit> action)

Performs the given action on each rect in this region.

static final @NonNull Iterator<@NonNull Rect>

Returns an Iterator over the rects in this region.

static final @NonNull Region
RegionKt.minus(Region receiver, Rect r)

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

static final @NonNull Region
RegionKt.minus(Region receiver, Region r)

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

static final @NonNull Region
RegionKt.not(Region receiver)

Returns the negation of this region as a new region.

static final @NonNull Region
RegionKt.or(Region receiver, Rect r)

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

static final @NonNull Region
RegionKt.or(Region receiver, Region r)

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

static final @NonNull