Logo FS-Skia-UI

ControlRenderResult<'msg> Type

Output of rendering a control tree (`ControlRenderResult<'msg>`): the painted `Scene`, the `Layout` root, the per-control `Bounds`, any `Diagnostics`, the `EventBindings` and their `BoundIds`, and the total `NodeCount`.

Record fields

Record Field Description

BoundIds

Full Usage: BoundIds

Field type: Set<ControlId>

Canonical ids (the unified `Key ?? structural-path` scheme) of every node carrying at least one event binding. The same scheme as `EventBindings` and `Bounds`, so a recovered id is a direct membership/lookup key. Populated by `renderTree` and `render` (and the retained path); read by `nearestAuthored`.

Field type: Set<ControlId>

Bounds

Full Usage: Bounds

Field type: (ControlId * Rect) list

Evaluated absolute bounds of every laid-out control, keyed by `ControlId` (one entry per laid-out control instance). Populated by `Control.renderTree` from the computed `LayoutResult`; the preview `Control.render` leaves it empty. A host joins this with `EventBindings` (also keyed by `ControlId`) for hit-testing.

Field type: (ControlId * Rect) list

Diagnostics

Full Usage: Diagnostics

Field type: ControlDiagnostic list
Field type: ControlDiagnostic list

EventBindings

Full Usage: EventBindings

Field type: ControlEventBinding<'msg> list
Field type: ControlEventBinding<'msg> list

Layout

Full Usage: Layout

Field type: LayoutNode
Field type: LayoutNode

NodeCount

Full Usage: NodeCount

Field type: int
Field type: int

Scene

Full Usage: Scene

Field type: Scene
Field type: Scene

Type something to start searching.