Google is committed to advancing racial equity for Black communities. See how.

ClipOp

enum class ClipOp
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.ui.graphics.ClipOp>
   ↳ androidx.compose.ui.graphics.ClipOp

Defines how a new clip region should be merged with the existing clip region.

Used by Canvas.clipRect.

Summary

Enum values

Subtract the new region from the existing region.

Intersect the new region from the existing region.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

Difference

enum val Difference : ClipOp

Subtract the new region from the existing region.

Intersect

enum val Intersect : ClipOp

Intersect the new region from the existing region.