# DrawStyleScope

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.DrawStyleScope) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  interface DrawStyleScope : BorderScope, BackgroundScope, ForegroundScope, ShapeScope, ShadowScope
  ```
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 drawing 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.BackgroundScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BackgroundScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BackgroundScope#background(androidx.compose.ui.graphics.Color)(color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`

Sets the background color of the component.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BackgroundScope#background(androidx.compose.ui.graphics.Brush)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush)`

Sets the background of the component using a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush`.
Cmn From [androidx.compose.foundation.style.BorderScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope#borderBrush(androidx.compose.ui.graphics.Brush)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush)`

Sets the brush used to paint the border around the component.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope#borderColor(androidx.compose.ui.graphics.Color)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`

Sets the color of the border around the component.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/BorderScope#borderWidth(androidx.compose.ui.unit.Dp)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`

Sets the width of the border around the component.
Cmn From [androidx.compose.foundation.style.ForegroundScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ForegroundScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ForegroundScope#foreground(androidx.compose.ui.graphics.Brush)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush)`

Sets the foreground brush for the component.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ForegroundScope#foreground(androidx.compose.ui.graphics.Color)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`

Sets the foreground color for the component.
Cmn From [androidx.compose.foundation.style.ShadowScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(androidx.compose.ui.graphics.shadow.Shadow)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)`

Applies a drop shadow effect directly to the component, often used for text or specific graphics.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#dropShadow(kotlin.Array)(vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)`

Applies one or more drop shadow effects directly to the component.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(androidx.compose.ui.graphics.shadow.Shadow)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)`

Applies an inner shadow effect to the component.
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShadowScope#innerShadow(kotlin.Array)(vararg value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/shadow/Shadow)`

Applies one or more inner shadow effects to the component.
Cmn From [androidx.compose.foundation.style.ShapeScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShapeScope) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ShapeScope#shape(androidx.compose.ui.graphics.Shape)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape)`

Sets the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` for the component.
Cmn