ModifierType

public struct ModifierType : OptionSet

Flags to indicate the state of modifier keys and mouse buttons in events.

Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.

Note that GDK may add internal values to events which include values outside of this enumeration. Your code should preserve and ignore them. You can use GDK_MODIFIER_MASK to remove all private values.

  • The corresponding value of the raw type

    Declaration

    Swift

    public var rawValue: UInt32
  • The equivalent raw Int value

    Declaration

    Swift

    @inlinable
    public var intValue: Int { get set }
  • int

    The equivalent raw gint value

    Declaration

    Swift

    @inlinable
    public var int: gint { get set }
  • The equivalent underlying GdkModifierType enum value

    Declaration

    Swift

    @inlinable
    public var value: GdkModifierType { get set }
  • Creates a new instance with the specified raw value

    Declaration

    Swift

    @inlinable
    public init(rawValue: UInt32)
  • Creates a new instance with the specified GdkModifierType enum value

    Declaration

    Swift

    @inlinable
    public init(_ enumValue: GdkModifierType)
  • Creates a new instance with the specified Int value

    Declaration

    Swift

    @inlinable
    public init<I>(_ intValue: I) where I : BinaryInteger
  • the Shift key.

    Declaration

    Swift

    public static let shiftMask: ModifierType
  • a Lock key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock).

    Declaration

    Swift

    public static let lockMask: ModifierType
  • the Control key.

    Declaration

    Swift

    public static let controlMask: ModifierType
  • the fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key).

    Declaration

    Swift

    public static let altMask: ModifierType
  • the first mouse button.

    Declaration

    Swift

    public static let button1Mask: ModifierType
  • the second mouse button.

    Declaration

    Swift

    public static let button2Mask: ModifierType
  • the third mouse button.

    Declaration

    Swift

    public static let button3Mask: ModifierType
  • the fourth mouse button.

    Declaration

    Swift

    public static let button4Mask: ModifierType
  • the fifth mouse button.

    Declaration

    Swift

    public static let button5Mask: ModifierType
  • the Super modifier

    Declaration

    Swift

    public static let superMask: ModifierType
  • the Hyper modifier

    Declaration

    Swift

    public static let hyperMask: ModifierType
  • the Meta modifier

    Declaration

    Swift

    public static let metaMask: ModifierType