public sealed interface RemotePaint
A paint object used for remote drawing operations.
RemotePaint bridges standard platform paint properties with remote-first types like RemoteFloat and RemoteColor, allowing properties to be associated with remote IDs for efficient serialization and dynamic expressions.
This interface can be instantiated via the RemotePaint factory function, or converted from platform paints using platform-specific extension functions.
Properties
blendMode
public var blendMode: RemoteBlendMode
The RemoteBlendMode to use when drawing with this paint.
style
public var style: RemotePaintingStyle
The RemotePaintingStyle to use (e.g., Fill, Stroke).
strokeWidth
public var strokeWidth: RemoteFloat
The width of the stroke when style is set to Stroke.
strokeCap
public var strokeCap: RemoteStrokeCap
The RemoteStrokeCap to use for the ends of lines and paths.
strokeJoin
public var strokeJoin: RemoteStrokeJoin
The RemoteStrokeJoin to use for the joints of lines and paths.
color
public var color: RemoteColor
The color to use for drawing.
textSize
public var textSize: RemoteFloat
The size of the text to draw.
isAntiAlias
public var isAntiAlias: Boolean
Whether anti-aliasing is enabled when drawing with this paint.
filterQuality
public var filterQuality: RemoteFilterQuality
The RemoteFilterQuality to use when scaling bitmaps.
shader
public var shader: RemoteShader?
The RemoteShader to use for drawing gradients or other patterns.
colorFilter
public var colorFilter: RemoteColorFilter?
The color filter to apply to the drawn content.
typeface
public var typeface: RemoteTypeface?
The RemoteTypeface to use for drawing text.
fontFeatureSettings
public var fontFeatureSettings: String?
The CSS-style font feature settings string (e.g., "tnum", "zero").
fontVariationSettings
public var fontVariationSettings: RemoteFontVariation.Settings?
The RemoteFontVariation.Settings to use for drawing text.
Members
Companion
public companion object
Functions
invoke
public operator fun invoke(init: RemotePaint.() -> Unit = {}): RemotePaint
Creates a new RemotePaint instance using StandardRemotePaint.
Parameters
| init | An optional initialization block to configure the paint. |
Return
a new RemotePaint configured by init