DeviceType

public extension DeviceType
  • Cast constructor, converting any binary integer to a DeviceType.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Device is a master (or virtual) device. There will be an associated focus indicator on the screen.

    Declaration

    Swift

    static let master: GdkDeviceType
  • Device is a slave (or physical) device.

    Declaration

    Swift

    static let slave: GdkDeviceType
  • Device is a physical device, currently not attached to any virtual device.

    Declaration

    Swift

    static let floating: GdkDeviceType