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

Viewport

The terminal footprint owned by a renderer.

Frame coordinates are always local.

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

Viewport

Enumeration
enum Viewport

Conforms to: Swift.Equatable, Swift.Sendable, Swift.SendableMetatype.

The terminal footprint owned by a renderer.

Frame coordinates are always local.

Source · Viewport.swift:6

fullscreen

Case
case fullscreen

The fullscreen case. Associated values, if any, are shown in the declaration.

Source · Viewport.swift:7

fixed(_:)

Case
case fixed(Rect)

A physical terminal rectangle, clipped to the current terminal size.

Source · Viewport.swift:9

inline(height:anchor:)

Case
case inline(height: Int, anchor: Point)

A full-width primary-screen region starting at a confirmed physical cursor.

A nonzero cursor column starts on the following row. The renderer reserves rows with line feeds and may scroll existing primary-screen output upward.

Source · Viewport.swift:14