class RemoteContentDrawScope : RemoteDrawScope


A remote-compatible drawing scope for RemoteCompose that provides access to the content of the component being drawn.

Summary

Public functions

Unit

Draws the content of the component.

Public properties

open RemoteFloat

The height of the drawing area as a RemoteFloat.

open RemoteFloat

The width of the drawing area as a RemoteFloat.

Inherited functions

From androidx.compose.remote.creation.compose.layout.RemoteDrawScope
Unit
drawArc(
    paint: RemotePaint?,
    startAngle: RemoteFloat,
    sweepAngle: RemoteFloat,
    useCenter: Boolean,
    topLeft: RemoteOffset,
    size: RemoteSize
)
Unit
drawCircle(paint: RemotePaint?, radius: RemoteFloat, center: RemoteOffset)

Draws a circle.

Unit
drawLine(paint: RemotePaint?, start: RemoteOffset, end: RemoteOffset)

Draws a line.

Unit
drawOval(paint: RemotePaint?, topLeft: RemoteOffset, size: RemoteSize)
Unit
drawRect(paint: RemotePaint?, topLeft: RemoteOffset, size: RemoteSize)

Draws a rectangle with the given paint, topLeft offset, and size.

Unit
drawRoundRect(
    paint: RemotePaint?,
    topLeft: RemoteOffset,
    size: RemoteSize,
    cornerRadius: RemoteOffset
)
Unit
drawTextOnCircle(
    text: RemoteString,
    centerX: RemoteFloat,
    centerY: RemoteFloat,
    radius: RemoteFloat,
    startAngle: RemoteFloat,
    warpRadiusOffset: RemoteFloat,
    paint: RemotePaint?,
    alignment: RemoteDrawScope.CircularAlignment,
    placement: RemoteDrawScope.CircularPlacement
)

Draws text along a circle.

Unit
usePaint(paint: RemotePaint, block: () -> Unit)

Inherited properties

From androidx.compose.remote.creation.compose.layout.RemoteDrawScope
RemoteOffset

The center of the drawing area as a RemoteOffset.

RemoteSize

The size of the drawing area as a RemoteSize.

From androidx.compose.remote.creation.compose.state.RemoteStateScope
open LayoutDirection

The LayoutDirection associated with the document being drawn into.

open RemoteDensity

The RemoteDensity associated with the document being drawn into.

Public functions

drawContent

Added in 1.0.0-alpha21
fun drawContent(): Unit

Draws the content of the component.

Public properties

height

open val height: RemoteFloat

The height of the drawing area as a RemoteFloat.

width

open val width: RemoteFloat

The width of the drawing area as a RemoteFloat.