loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / RENDERING, VIEWPORTS, AND COMPOSITION

RenderBackend

Receives whole presentation operations without owning terminal modes or input.

Throwing may mean partial output. The driver invalidates its frame and requires an explicit inline reanchor whenever an operation could have scrolled.

Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.

Members on this page

Feature guides and release status

RenderBackend

Protocol
protocol RenderBackend

Receives whole presentation operations without owning terminal modes or input.

Throwing may mean partial output. The driver invalidates its frame and requires an explicit inline reanchor whenever an operation could have scrolled.

Source · RenderBackend.swift:67

render(_:)

Instance Method Throws
mutating func render(_ update: RenderUpdate) throws -> RenderStats

Presents the semantic operation or throws. A failure may follow partial output; the driver invalidates its snapshot.

Parameters (1)
update
Argument type and any default are shown in the declaration; see the behavior notes above.

Returns RenderStats.

Source · RenderBackend.swift:68

reset()

Instance Method
mutating func reset()

Discards backend assumptions without clearing the physical surface. The protocol supplies an empty default implementation.

Source · RenderBackend.swift:69

reset()

Instance Method
mutating func reset()

Discards backend assumptions without clearing the physical surface. The protocol supplies an empty default implementation.

Source · RenderBackend.swift:73