loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / SUPPORTING WEFT TYPES

MouseButton

A mouse button identified by SGR terminal reports.

Defined by weft, with no loom typealias. Add the weft product to your target and use import weft when referring to this type by name.

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

MouseButton

Enumeration
enum MouseButton

Conforms to: Swift.Equatable, Swift.Sendable, Swift.SendableMetatype.

A mouse button identified by SGR terminal reports.

Source · MouseEvent.swift:15

left

Case
case left

The left case. Associated values, if any, are shown in the declaration.

Source · MouseEvent.swift:16

middle

Case
case middle

The middle case. Associated values, if any, are shown in the declaration.

Source · MouseEvent.swift:17

right

Case
case right

The right case. Associated values, if any, are shown in the declaration.

Source · MouseEvent.swift:18

additional(_:)

Case
case additional(Int)

The xterm button number, from 8 through 11.

Source · MouseEvent.swift:20