DrawingContext

A MeasuringContext extension with a Canvas reference.

Inheritors

Properties

Link copied to clipboard
abstract val canvas: Canvas

The canvas to draw the chart on.

Functions

Link copied to clipboard
abstract fun withOtherCanvas(canvas: Canvas, block: () -> Unit)

Updates the value of DrawingContext.canvas to canvas, runs block, and restores the previous DrawingContext.canvas value.