Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / 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
struct PanelTitleConforms to: Swift.Sendable, Swift.SendableMetatype.
Styled spans placed on a panel border.
Earlier titles own colliding cells.
Source · Panel.swift:82spans
var spans: [TextSpan]A public field of this type. Its value type and mutability are shown in the declaration.
Source · Panel.swift:83alignment
var alignment: PanelTitleAlignmentA public field of this type. Its value type and mutability are shown in the declaration.
Source · Panel.swift:84position
var position: PanelTitlePositionAbsolute terminal-cell mouse position.
Source · Panel.swift:85init(_:alignment:position:)
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.