Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / TERMINAL ALIASES FROM WEFT
MouseKind
Mouse-down/up, drag, unpressed movement, and vertical wheel directions. Hit testing and action dispatch remain application decisions.
loom.MouseKind is an alias for weft.MouseKind. It is available through import loom. The underlying type’s members are documented here.
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.
Example
let action: MouseKind = .wheelDown
_ = MouseEvent(kind: action, position: Point(x: 0, y: 0))Members on this page
Feature guides and release status
MouseKind
typealias MouseKind = weft.weft.MouseKindMouse-down/up, drag, unpressed movement, and vertical wheel directions. Hit testing and action dispatch remain application decisions.
Source · TerminalExports.swift:17Underlying weft API
MouseKind
enum MouseKindConforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.
A mouse action reported by the terminal.
Source · MouseEvent.swift:2move
case movePointer motion without a pressed button, when explicitly enabled.
Source · MouseEvent.swift:4down
case downThe down case. Associated values, if any, are shown in the declaration.
Source · MouseEvent.swift:5drag
case dragThe drag case. Associated values, if any, are shown in the declaration.
Source · MouseEvent.swift:6up
case upThe up case. Associated values, if any, are shown in the declaration.
Source · MouseEvent.swift:7wheelUp
case wheelUpThe wheel up case. Associated values, if any, are shown in the declaration.
Source · MouseEvent.swift:8wheelDown
case wheelDownThe wheel down case. Associated values, if any, are shown in the declaration.
Source · MouseEvent.swift:9wheelLeft
case wheelLeftThe wheel left case. Associated values, if any, are shown in the declaration.
Source · MouseEvent.swift:10wheelRight
case wheelRightThe wheel right case. Associated values, if any, are shown in the declaration.
Source · MouseEvent.swift:11