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

PanelShadow

A translated rectangular shadow drawn before the panel and clipped by its enclosing buffer clip.

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

PanelShadow

Structure
struct PanelShadow

Conforms to: Swift.Sendable, Swift.SendableMetatype.

A translated rectangular shadow drawn before the panel and clipped by its enclosing buffer clip.

Source · BorderSymbols.swift:52

offsetX

Instance Property
var offsetX: Int

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

Source · BorderSymbols.swift:53

offsetY

Instance Property
var offsetY: Int

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

Source · BorderSymbols.swift:54

style

Instance Property
var style: Style

Visual attributes used when painting this value.

Source · BorderSymbols.swift:55

glyph

Instance Property
let glyph: String

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

Source · BorderSymbols.swift:56

init(offsetX:offsetY:style:glyph:)

Initializer Throws
init(offsetX: Int = 1, offsetY: Int = 1, style: Style = Style(), glyph: String = "░") throws

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

Parameters (4)
offsetX
Argument type and any default are shown in the declaration; see the behavior notes above.
offsetY
Argument type and any default are shown in the declaration; see the behavior notes above.
style
Text/cell appearance.
glyph
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · BorderSymbols.swift:58