# LayerStyleScope

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/StyleScope.kt+class:androidx.compose.foundation.style.LayerStyleScope) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  interface LayerStyleScope : AlphaScope, ScaleScope, TranslationScope, RotationScope, TransformOriginScope, ColorFilterScope, ClipScope, ZIndexScope
  ```
Known direct subclasses [StyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` | A `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` is the receiver scope of a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` lambda. |

*** ** * ** ***

An interface that introduces the graphics layer property to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` receiver scope.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` |   |

## Summary

### Inherited functions

From [androidx.compose.foundation.style.AlphaScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AlphaScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/AlphaScope#alpha(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Sets the opacity of the component.
Cmn From [androidx.compose.foundation.style.ClipScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ClipScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ClipScope#clip(kotlin.Boolean)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

Clips the component to its bounds.
Cmn From [androidx.compose.foundation.style.ColorFilterScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ColorFilterScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ColorFilterScope#colorFilter(androidx.compose.ui.graphics.ColorFilter)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter?)`

Sets the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` to apply to the component.
Cmn From [androidx.compose.foundation.style.RotationScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope#rotationX(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Rotates the component around the X-axis through its center.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope#rotationY(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Rotates the component around the Y-axis through its center.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/RotationScope#rotationZ(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Rotates the component around the Z-axis (perpendicular to the screen) through its center.
Cmn From [androidx.compose.foundation.style.ScaleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ScaleScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ScaleScope#scaleX(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Scales the component horizontally around its center pivot point.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ScaleScope#scaleY(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Scales the component vertically around its center pivot point.
Cmn From [androidx.compose.foundation.style.TransformOriginScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TransformOriginScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TransformOriginScope#transformOriginX(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Offset percentage along the x-axis for which contents are rotated and scaled.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TransformOriginScope#transformOriginY(kotlin.Float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Offset percentage along the y-axis for which contents are rotated and scaled.
Cmn From [androidx.compose.foundation.style.TranslationScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TranslationScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TranslationScope#translationX(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Translates (moves) the component horizontally.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TranslationScope#translationY(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Translates (moves) the component vertically.
Cmn From [androidx.compose.foundation.style.ZIndexScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ZIndexScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ZIndexScope#zIndex(kotlin.Float)(value: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Sets the Z-index of the component.
Cmn