# OffsetEffect

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/+class:androidx.compose.ui.graphics.OffsetEffect) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Common/AllAndroid/JVM
- Cmn

  ```
  class OffsetEffect : RenderEffect
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.ui.graphics.RenderEffect](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect) ||
|   | ↳ | [androidx.compose.ui.graphics.OffsetEffect](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect) |

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` used to translate either the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` or the content of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` it is configured on.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect#OffsetEffect(androidx.compose.ui.graphics.RenderEffect,androidx.compose.ui.geometry.Offset)(renderEffect: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect?, offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` | Cmn android |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | android |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect#hashCode()()` | android |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect#toString()()` | android |

| ### Protected functions |
|---|---|---|
| `open https://developer.android.com/reference/android/graphics/RenderEffect.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 31) https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect#createRenderEffect()()` | android |

| ### Inherited functions |
|---|
| From [androidx.compose.ui.graphics.RenderEffect](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect) |---|---|---| | `https://developer.android.com/reference/android/graphics/RenderEffect.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 31) https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect#asAndroidRenderEffect()()` Obtain a `https://developer.android.com/reference/android/graphics/RenderEffect.html` from the compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` | android | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect#isSupported()()` Capability query to determine if the particular platform supports the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect`. | Cmn android | |

## Public constructors

### OffsetEffect

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

```
OffsetEffect(renderEffect: RenderEffect?, offset: Offset)
```

## Public functions

### equals

android

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

android

```
open fun hashCode(): Int
```

### toString

android

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

## Protected functions

### createRenderEffect

android

```
@RequiresApi(value = 31)
protected open fun createRenderEffect(): RenderEffect
```