androidx.compose.ui.draw

Interfaces

BuildDrawCacheParams

The set of parameters which could be used to build the drawing cache.

Cmn
CacheDrawModifierNode

Expands on the 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
DrawCacheModifier

DrawModifier implementation that supports building a cache of objects to be referenced across draw calls

Cmn
DrawModifier

A Modifier.Element that draws into the space of the layout.

Cmn
DropShadowScope

Scope that provides the capability to configure the properties of a drop shadow in order to support efficient transformations without recomposition

Cmn
InnerShadowScope

Scope that provides the capability to configure the properties of an inner shadow in order to support efficient transformations without recomposition

Cmn
ShadowScope

Scope that can be used to define properties to render either a drop shadow or inner shadow.

Cmn

Classes

BlurredEdgeTreatment

Determines the strategy used to render pixels in the blurred result that may extend beyond the bounds of the original input.

Cmn
CacheDrawScope

Handle to a drawing environment that enables caching of content based on the resolved size.

Cmn
DrawResult

Holder to a callback to be invoked during draw operations.

Cmn

Modifiers

alpha

Draw content with modified alpha that may be less than 1.

Cmn
blur

Draw content blurred with the specified radii.

Cmn
clip

Clip the content to shape.

Cmn
clipToBounds

Clip the content to the bounds of a layer defined at this modifier.

Cmn
drawBehind

Draw into a Canvas behind the modified content.

Cmn
drawWithCache

Draw into a 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
drawWithContent

Creates a DrawModifier that allows the developer to draw before or after the layout's contents.

Cmn
dropShadow

Draws a drop shadow behind the rest of the content with the geometry specified by the given shape and the shadow properties defined the DropShadowScope.

Cmn
innerShadow

Draws an inner shadow behind the rest of the content with the geometry specified by the given shape and the shadow properties defined the InnerShadowScope.

Cmn
paint

Paint the content using painter.

Cmn
rotate

Sets the degrees the view is rotated around the center of the composable.

Cmn
scale

Scale the contents of both the horizontal and vertical axis uniformly by the same scale factor.

Cmn
shadow

Creates a graphicsLayer that draws a shadow.

Cmn

Top-level functions summary

Top-level functions

CacheDrawModifierNode

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