Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / 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
struct RenderPresentationConforms to: Swift.Sendable, Swift.SendableMetatype.
A logical frame plus the terminal operations needed to place it.
Source · RenderBackend.swift:23next
let next: FrameSnapshotA public field of this type. Its value type and mutability are shown in the declaration.
Source · RenderBackend.swift:24previous
let previous: FrameSnapshot?A public field of this type. Its value type and mutability are shown in the declaration.
Source · RenderBackend.swift:25terminalSize
let terminalSize: RenderSizeA public field of this type. Its value type and mutability are shown in the declaration.
Source · RenderBackend.swift:26area
let area: RectThe available zero-based rectangle in terminal cells.
Source · RenderBackend.swift:27clearScreen
let clearScreen: BoolClears the display when the session opens.
Source · RenderBackend.swift:28clears
let clears: [Rect]A public field of this type. Its value type and mutability are shown in the declaration.
Source · RenderBackend.swift:29anchor
let anchor: Point?The fixed selection endpoint.
Source · RenderBackend.swift:30init(next:previous:terminalSize:area:clearScreen:clears:anchor:)
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.