RendererState

data class RendererState(val surfaces: Map<String, SurfaceModel> = emptyMap())

Every surface the renderer currently holds.

This is the whole of the renderer's agent-facing state, and it is immutable: applying a message returns a new RendererState rather than mutating this one, so a UI layer can hold a snapshot and diff against the next one.

Constructors

Link copied to clipboard
constructor(surfaces: Map<String, SurfaceModel> = emptyMap())

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun surface(surfaceId: String): SurfaceModel?

The surface surfaceId names, or null when it does not exist.