# androidx.compose.ui.draw

Common/All

## Interfaces

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/BlurScope` | Configures progressive `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/blur.modifier#(androidx.compose.ui.Modifier).blur(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.draw.BlurredEdgeTreatment)` layer properties. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/BuildDrawCacheParams` | The set of parameters which could be used to build the drawing cache. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/CacheDrawModifierNode` | Expands on the `https://developer.android.com/reference/kotlin/androidx/compose/ui/node/DrawModifierNode` by adding the ability to invalidate the draw cache for changes in things like shapes and bitmaps (see Modifier.border for a usage examples). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawCacheModifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawModifier` implementation that supports building a cache of objects to be referenced across draw calls | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawModifier` | A `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element` that draws into the space of the layout. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DropShadowScope` | Scope that provides the capability to configure the properties of a drop shadow in order to support efficient transformations without recomposition | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/InnerShadowScope` | Scope that provides the capability to configure the properties of an inner shadow in order to support efficient transformations without recomposition | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/ShadowScope` | Scope that can be used to define properties to render either a drop shadow or inner shadow. | Cmn |

## Classes

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/BlurredEdgeTreatment` | Determines the strategy used to render pixels in the blurred result that may extend beyond the bounds of the original input. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/CacheDrawScope` | Handle to a drawing environment that enables caching of content based on the resolved size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawResult` | Holder to a callback to be invoked during draw operations. | Cmn |

## Modifiers

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/alpha.modifier` | Draw content with modified alpha that may be less than 1. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/blur.modifier` | Draws content with a blur whose radius can vary across the surface. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/clip.modifier` | Clip the content to `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/package-summary#(androidx.compose.ui.Modifier).clip(androidx.compose.ui.graphics.Shape)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/clipToBounds.modifier` | Clip the content to the bounds of a layer defined at this modifier. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/drawBehind.modifier` | Draw into a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas` behind the modified content. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/drawWithCache.modifier` | Draw into a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope` with content that is persisted across draw calls as long as the size of the drawing area is the same or any state objects that are read have not changed. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/drawWithContent.modifier` | Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawModifier` that allows the developer to draw before or after the layout's contents. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/dropShadow.modifier` | Draws a drop shadow behind the rest of the content with the geometry specified by the given shape and the shadow properties defined the `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DropShadowScope`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/innerShadow.modifier` | Draws an inner shadow behind the rest of the content with the geometry specified by the given shape and the shadow properties defined the `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/InnerShadowScope`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/paint.modifier` | Paint the content using `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/package-summary#(androidx.compose.ui.Modifier).paint(androidx.compose.ui.graphics.painter.Painter,kotlin.Boolean,androidx.compose.ui.Alignment,androidx.compose.ui.layout.ContentScale,kotlin.Float,androidx.compose.ui.graphics.ColorFilter)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/rotate.modifier` | Sets the degrees the view is rotated around the center of the composable. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/scale.modifier` | Scale the contents of both the horizontal and vertical axis uniformly by the same scale factor. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/shadow.modifier` | Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/graphicsLayer.modifier#(androidx.compose.ui.Modifier).graphicsLayer(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.TransformOrigin,androidx.compose.ui.graphics.Shape,kotlin.Boolean,androidx.compose.ui.graphics.RenderEffect,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.CompositingStrategy,androidx.compose.ui.graphics.BlendMode,androidx.compose.ui.graphics.ColorFilter,androidx.compose.ui.graphics.LayerOutsets)` that draws a shadow. | Cmn |

## Top-level functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/CacheDrawModifierNode` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/package-summary#CacheDrawModifierNode(kotlin.Function1)(onBuildDrawCache: https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/CacheDrawScope.() -> https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawResult)` | Cmn |

## Top-level functions

### CacheDrawModifierNode

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/draw/DrawModifier.kt+function:CacheDrawModifierNode) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.5.0)

```
fun CacheDrawModifierNode(onBuildDrawCache: CacheDrawScope.() -> DrawResult): CacheDrawModifierNode
```