loom & weft
Made for Swift.

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

LOOM Unreleased (PR #2) / ADDITIONAL WIDGETS AND TEXT

PanelTitle

Styled spans placed on a panel border.

Earlier titles own colliding 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

PanelTitle

Structure
struct PanelTitle

Conforms to: Swift.Sendable, Swift.SendableMetatype.

Styled spans placed on a panel border.

Earlier titles own colliding cells.

Source · Panel.swift:82

spans

Instance Property
var spans: [TextSpan]

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

Source · Panel.swift:83

alignment

Instance Property
var alignment: PanelTitleAlignment

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

Source · Panel.swift:84

position

Instance Property
var position: PanelTitlePosition

Absolute terminal-cell mouse position.

Source · Panel.swift:85

init(_:alignment:position:)

Initializer
init(_ spans: [TextSpan], alignment: PanelTitleAlignment = .left, position: PanelTitlePosition = .top)

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

Parameters (3)
spans
Styled source spans, in order.
alignment
Argument type and any default are shown in the declaration; see the behavior notes above.
position
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Panel.swift:87