Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

androidx.compose.ui.graphics.drawscope

Interfaces

ContentDrawScope

Receiver scope for drawing content into a layout, where the content can be drawn between other canvas operations.

DrawContext

Object that provides the dependencies to support a DrawScope drawing environment.

DrawScope

Creates a scoped drawing environment with the provided Canvas.

DrawTransform

Defines transformations that can be applied to a drawing environment

Classes

CanvasDrawScope

Implementation of DrawScope that issues drawing commands into the specified canvas and bounds via CanvasDrawScope.draw

DrawStyle

Represents how the shapes should be drawn within a DrawScope

Stroke

DrawStyle that provides information for drawing content with a stroke

Annotations

DrawScopeMarker

DSL marker used to distinguish between drawing operations and canvas transform operations

Extension functions summary

For DrawScope
Unit
DrawScope.clipPath(path: Path, clipOp: ClipOp = ClipOp.Intersect, block: DrawScope.() -> Unit)

Reduces the clip region to the intersection of the current clip and the given path.

Unit
DrawScope.clipRect(left: Float = 0.0f, top: Float = 0.0f, right: Float = size.width, bottom: Float = size.height, clipOp: ClipOp = ClipOp.Intersect, block: DrawScope.() -> Unit)

Reduces the clip region to the intersection of the current clip and the given rectangle indicated by the given left, top, right and bottom bounds.

Unit

Provides access to draw directly with the underlying Canvas.

Unit
DrawScope.inset(left: Float, top: Float, right: Float, bottom: Float, block: DrawScope.() -> Unit)

Simultaneously translate the DrawScope coordinate space by left and top as well as modify the dimensions of the current painting area.

Unit
DrawScope.inset(inset: Float, block: DrawScope.() -> Unit)

Convenience method modifies the DrawScope bounds to inset both left, top, right and bottom bounds by inset.

Unit
DrawScope.inset(horizontal: Float = 0.0f, vertical: Float = 0.0f, block: DrawScope.() -> Unit)

Convenience method modifies the DrawScope bounds to inset both left and right bounds by horizontal as well as the top and bottom by vertical.

Unit
DrawScope.rotate(degrees: Float, pivot: