Stay organized with collections Save and categorize content based on your preferences.

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

public static final @NonNull 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

public static final @NonNull 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

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

Return true if the region contains the specified Point.

RegionKt.forEach

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

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

Returns an Iterator over the rects in this region.

RegionKt.minus

public static final @NonNull 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

public static final @NonNull 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

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

Returns the negation of this region as a new region.

RegionKt.or

public 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.

RegionKt.or

public static final @NonNull 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

public static final @NonNull 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

public static final @NonNull 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

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

Returns the negation of this region as a new region.

RegionKt.xor

public static final @NonNull 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

public static final @NonNull 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.