Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.
LOOM Unreleased (PR #2) / COLLECTIONS AND INTERACTION
KeyHelp
Shortcut help generated from the same bindings used to dispatch actions.
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
KeyHelp
struct KeyHelp<Action>Conforms to: Widget.
Shortcut help generated from the same bindings used to dispatch actions.
Source · KeyHelp.swift:2keyMap
var keyMap: KeyMap<Action>A public field of this type. Its value type and mutability are shown in the declaration.
Source · KeyHelp.swift:3style
var style: StyleVisual attributes used when painting this value.
Source · KeyHelp.swift:4init(_:style:)
init(_ keyMap: KeyMap<Action>, style: Style = Style())Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (2)
keyMap- Argument type and any default are shown in the declaration; see the behavior notes above.
style- Text/cell appearance.
render(in:buffer:)
func render(in area: Rect, buffer: inout Buffer)Paints this widget into the assigned terminal-cell rectangle. Application code owns state, input routing, and terminal lifetime.
Parameters (2)
in- Argument type and any default are shown in the declaration; see the behavior notes above.
buffer- Mutable destination cell grid.