Class

CanvasOp.Draw

Represents an actual drawing or state-setting operation (e.g., drawRect).

Source set: JvmAndAndroid
class Draw(val switchesCanvas: Boolean = false, val action: (RemoteComposeWriter) -> Unit) :
        CanvasOp()

Represents an actual drawing or state-setting operation (e.g., drawRect).

Functions

write

Source set: JvmAndAndroid
override fun write(writer: RemoteComposeWriter, creationState: RemoteComposeCaptureState)

containsDrawingPrimitives

Source set: JvmAndAndroid
override fun containsDrawingPrimitives(): Boolean

switchesCanvasOrHasCondition

Source set: JvmAndAndroid
override fun switchesCanvasOrHasCondition(): Boolean

emitsWireCommands

Source set: JvmAndAndroid
override fun emitsWireCommands(): Boolean

toString

Source set: JvmAndAndroid
override fun toString(): String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: