PadEventProtocol

public protocol PadEventProtocol : EventProtocol

The PadEventProtocol protocol exposes the methods and properties of an underlying GdkPadEvent instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see PadEvent. Alternatively, use PadEventRef as a lighweight, unowned reference if you already have an instance you just want to use.

An event related to a pad-based device.

  • ptr

    Untyped pointer to the underlying GdkPadEvent instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • pad_event_ptr Default implementation

    Typed pointer to the underlying GdkPadEvent instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GdkPadEvent instance.

    Declaration

    Swift

    var pad_event_ptr: UnsafeMutablePointer<GdkPadEvent>! { get }
  • Required Initialiser for types conforming to PadEventProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

PadEvent Class: PadEventProtocol extension (methods and fields)

  • getAxisValue(index:value:) Extension method

    Extracts the information from a pad strip or ring event.

    Declaration

    Swift

    @inlinable
    func getAxisValue(index: UnsafeMutablePointer<guint>!, value: UnsafeMutablePointer<CDouble>!)
  • getButton() Extension method

    Extracts information about the pressed button from a pad event.

    Declaration

    Swift

    @inlinable
    func getButton() -> Int
  • getGroupMode(group:mode:) Extension method

    Extracts group and mode information from a pad event.

    Declaration

    Swift

    @inlinable
    func getGroupMode(group: UnsafeMutablePointer<guint>!, mode: UnsafeMutablePointer<guint>!)
  • button Extension method

    Extracts information about the pressed button from a pad event.

    Declaration

    Swift

    @inlinable
    var button: Int { get }