loom & weft
Made for Swift.

Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.

LOOM Unreleased (PR #2) / RENDERING, VIEWPORTS, AND COMPOSITION

RenderPresentation

A logical frame plus the terminal operations needed to place it.

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

RenderPresentation

Structure
struct RenderPresentation

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A logical frame plus the terminal operations needed to place it.

Source · RenderBackend.swift:23

next

Instance Property
let next: FrameSnapshot

A public field of this type. Its value type and mutability are shown in the declaration.

Source · RenderBackend.swift:24

previous

Instance Property
let previous: FrameSnapshot?

A public field of this type. Its value type and mutability are shown in the declaration.

Source · RenderBackend.swift:25

terminalSize

Instance Property
let terminalSize: RenderSize

A public field of this type. Its value type and mutability are shown in the declaration.

Source · RenderBackend.swift:26

area

Instance Property
let area: Rect

The available zero-based rectangle in terminal cells.

Source · RenderBackend.swift:27

clearScreen

Instance Property
let clearScreen: Bool

Clears the display when the session opens.

Source · RenderBackend.swift:28

clears

Instance Property
let clears: [Rect]

A public field of this type. Its value type and mutability are shown in the declaration.

Source · RenderBackend.swift:29

anchor

Instance Property
let anchor: Point?

The fixed selection endpoint.

Source · RenderBackend.swift:30

init(next:previous:terminalSize:area:clearScreen:clears:anchor:)

Initializer
init(next: FrameSnapshot, previous: FrameSnapshot?, terminalSize: RenderSize, area: Rect, clearScreen: Bool, clears: [Rect] = [], anchor: Point? = nil)

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Parameters (7)
next
Next logical cell buffer.
previous
Previously presented cell buffer, or nil for a full repaint.
terminalSize
Argument type and any default are shown in the declaration; see the behavior notes above.
area
Assigned absolute terminal-cell rectangle.
clearScreen
Argument type and any default are shown in the declaration; see the behavior notes above.
clears
Argument type and any default are shown in the declaration; see the behavior notes above.
anchor
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · RenderBackend.swift:32