Package-level declarations

Functions

Link copied to clipboard
fun drawContext(canvas: Canvas, density: Float = 1.0f, isLtr: Boolean = true, elevationOverlayColor: Long = DefaultColors.Light.elevationOverlayColor, spToPx: (Float) -> Float = { it }): DrawContext

Creates an anonymous implementation of DrawContext.

Link copied to clipboard
inline fun DrawContext.withCanvas(block: Canvas.() -> Unit)

Calls the specified function block with DrawContext.canvas as its receiver.