# ClipOp

Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/ClipOp.kt+class:androidx.compose.ui.graphics.ClipOp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class ClipOp
  ```

*** ** * ** ***

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

Used by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#clipRect(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.ClipOp)`.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ClipOp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ClipOp#Difference()` Subtract the new region from the existing region. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ClipOp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ClipOp#Intersect()` Intersect the new region from the existing region. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ClipOp#toString()()` | Cmn |

## Public companion properties

### Difference

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Difference: ClipOp
```

Subtract the new region from the existing region.

### Intersect

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val Intersect: ClipOp
```

Intersect the new region from the existing region.

## Public functions

### toString

Cmn

```
open fun toString(): String
```