-
Cast constructor, converting any binary integer to a
InputSource
.Declaration
Swift
@inlinable init!<I>(_ raw: I) where I : BinaryInteger
Parameters
raw
The raw integer value to initialise the enum from
-
the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.)
Declaration
Swift
static let mouse: GdkInputSource
-
the device is a stylus of a graphics tablet or similar device.
Declaration
Swift
static let pen: GdkInputSource
-
the device is a keyboard.
Declaration
Swift
static let keyboard: GdkInputSource
-
the device is a direct-input touch device, such as a touchscreen or tablet
Declaration
Swift
static let touchscreen: GdkInputSource
-
the device is an indirect touch device, such as a touchpad
Declaration
Swift
static let touchpad: GdkInputSource
-
the device is a trackpoint
Declaration
Swift
static let trackpoint: GdkInputSource
-
the device is a “pad”, a collection of buttons, rings and strips found in drawing tablets
Declaration
Swift
static let tabletPad: GdkInputSource