abstract class RemotePainter


A class that holds drawing operations for a remote component. This is analogous to the androidx.compose.ui.graphics.painter.Painter class for remote compose operations. Subclasses of RemotePainter are responsible for implementing the onDraw method, which defines the drawing operations.

Summary

Public constructors

Public functions

Unit
RemoteDrawScope.draw(blendMode: BlendMode?, alpha: RemoteFloat)

The main entry point for drawing.

abstract Unit

Defines the drawing operations within RemoteDrawScope.

Public properties

abstract RemoteSize?

The intrinsic size of the painter.

Public constructors

RemotePainter

Added in 1.0.0-alpha08
RemotePainter()

Public functions

fun RemoteDrawScope.draw(
    blendMode: BlendMode? = null,
    alpha: RemoteFloat = DefaultAlpha.rf
): Unit

The main entry point for drawing. This method is called by the remote compose framework to draw the painter.

abstract fun RemoteDrawScope.onDraw(): Unit

Defines the drawing operations within RemoteDrawScope.

Public properties

intrinsicSize

Added in 1.0.0-alpha08
abstract val intrinsicSizeRemoteSize?

The intrinsic size of the painter. This is the size of the painter before any scaling or transformations are applied.