Start native apps faster with the Composables CLI ->
Class

CanvasOp.SaveRestore

Represents a save/restore group (corresponding to RemoteComposeWriter.save and RemoteComposeWriter.restore).

Source set: Android
class SaveRestore(
        val parent: SaveRestore? = null,
        val children: MutableList<CanvasOp> = ArrayList(),
    ) : CanvasOp()

Represents a save/restore group (corresponding to RemoteComposeWriter.save and RemoteComposeWriter.restore).

Properties

hasDrawCalls

Source set: Android
var hasDrawCalls = false

Indicates whether this scope or any of its descendants contain actual drawing calls. Used during the elision pass to discard empty scopes.

elisionMode

Source set: Android
var elisionMode = ElisionMode.PRESERVE

The elision strategy decided for this scope during the elision pass.

spanOp

Source set: Android
var spanOp: CanvasOperationBuffer.SpanOp? = null

isTopLevel

Source set: Android
var isTopLevel = false

Functions

getRootSaveNode

Source set: Android
fun getRootSaveNode(): SaveRestore

hasTransformsOrClips

Source set: Android
override fun hasTransformsOrClips(): Boolean

hasChildTransformsOrClips

Source set: Android
fun hasChildTransformsOrClips(): Boolean

containsDrawingPrimitives

Source set: Android
override fun containsDrawingPrimitives(): Boolean

switchesCanvasOrHasCondition

Source set: Android
override fun switchesCanvasOrHasCondition(): Boolean

triggersDrawCall

Source set: Android
override fun triggersDrawCall(): Boolean

emitsWireCommands

Source set: Android
override fun emitsWireCommands(): Boolean

optimizeChildScopes

Source set: Android
override fun optimizeChildScopes(buffer: CanvasOperationBuffer)

evaluateElision

Source set: Android
override fun evaluateElision()

flattenInto

Source set: Android
override fun flattenInto(dest: MutableList<CanvasOp>)

flattenInto

Source set: Android
override fun flattenInto(
            spanOp: CanvasOperationBuffer.SpanOp,
            span: CanvasOperationBuffer.Span,
            dest: MutableList<CanvasOperationBuffer.SpanOp>,
        )

write

Source set: Android
override fun write(writer: RemoteComposeWriter, creationState: RemoteComposeCreationState)

toString

Source set: Android
override fun toString(): String