RegionKt

public final class RegionKt


Summary

Public methods

static final @NonNull Region

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

static final @NonNull Region

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

static final boolean

Return true if the region contains the specified Point.

static final void
RegionKt.forEach(
    @NonNull Region receiver,
    @NonNull Function1<@NonNull 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

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

static final @NonNull Region

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

static final @NonNull Region

Returns the negation of this region as a new region.

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

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

static final @NonNull Region

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

static final @NonNull Region

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

static final @NonNull Region

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

static final @NonNull Region

Returns the negation of this region as a new region.

static final @NonNull Region

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

static final @NonNull Region

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

Public methods

RegionKt.and

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

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

RegionKt.and

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

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

RegionKt.contains

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

Return true if the region contains the specified Point.

RegionKt.forEach

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

Performs the given action on each rect in this region.

RegionKt.iterator

@NonNull
public static final Iterator<@NonNull RectRegionKt.iterator(@NonNull Region receiver)

Returns an Iterator over the rects in this region.

RegionKt.minus

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

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

RegionKt.minus

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

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

RegionKt.not

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

Returns the negation of this region as a new region.

RegionKt.or

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

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

RegionKt.or

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

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

RegionKt.plus

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

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

RegionKt.plus

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

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

RegionKt.unaryMinus

@NonNull
public static final Region RegionKt.unaryMinus(@NonNull Region receiver)

Returns the negation of this region as a new region.

RegionKt.xor

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

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

RegionKt.xor

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

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