loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / RENDERING, VIEWPORTS, AND COMPOSITION

RenderSize

Nonnegative physical terminal dimensions in cells.

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

RenderSize

Structure
struct RenderSize

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

Nonnegative physical terminal dimensions in cells.

Source · RenderBackend.swift:4

width

Instance Property
let width: Int

Width in terminal cells.

Source · RenderBackend.swift:5

height

Instance Property
let height: Int

Height in terminal cells.

Source · RenderBackend.swift:6

init(width:height:)

Initializer
init(width: Int, height: Int)

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

Parameters (2)
width
Available columns in terminal cells.
height
Available rows in terminal cells.
Source · RenderBackend.swift:8