Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.
LOOM Unreleased (PR #2) / COLLECTIONS AND INTERACTION
FocusTarget
A keyboard focus destination and optional click region in absolute terminal 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
FocusTarget
struct FocusTarget<ID> where ID : HashableConforms to: Swift.Sendable, Swift.SendableMetatype.
A keyboard focus destination and optional click region in absolute terminal cells.
Source · FocusState.swift:2id
var id: IDStable identity for this icon or code block.
Source · FocusState.swift:3area
var area: Rect?The available zero-based rectangle in terminal cells.
Source · FocusState.swift:4isEnabled
var isEnabled: BoolA public field of this type. Its value type and mutability are shown in the declaration.
Source · FocusState.swift:5init(_:area:isEnabled:)
init(_ id: ID, area: Rect? = nil, isEnabled: Bool = true)Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (3)
id- Stable entry/icon identity, not an array index.
area- Assigned absolute terminal-cell rectangle.
isEnabled- Argument type and any default are shown in the declaration; see the behavior notes above.