TouchpadEventProtocol

public protocol TouchpadEventProtocol : EventProtocol

The TouchpadEventProtocol protocol exposes the methods and properties of an underlying GdkTouchpadEvent 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 TouchpadEvent. Alternatively, use TouchpadEventRef as a lighweight, unowned reference if you already have an instance you just want to use.

An event related to a gesture on a touchpad device.

Unlike touchscreens, where the windowing system sends basic sequences of begin, update, end events, and leaves gesture recognition to the clients, touchpad gestures are typically processed by the system, resulting in these events.

  • ptr

    Untyped pointer to the underlying GdkTouchpadEvent instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkTouchpadEvent instance.

    Default Implementation

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

    Declaration

    Swift

    var touchpad_event_ptr: UnsafeMutablePointer<GdkTouchpadEvent>! { get }
  • Required Initialiser for types conforming to TouchpadEventProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

TouchpadEvent Class: TouchpadEventProtocol extension (methods and fields)

  • getDeltas(dx:dy:) Extension method

    Extracts delta information from a touchpad event.

    Declaration

    Swift

    @inlinable
    func getDeltas(dx: UnsafeMutablePointer<CDouble>!, dy: UnsafeMutablePointer<CDouble>!)
  • getGesturePhase() Extension method

    Extracts the touchpad gesture phase from a touchpad event.

    Declaration

    Swift

    @inlinable
    func getGesturePhase() -> GdkTouchpadGesturePhase
  • getNFingers() Extension method

    Extracts the number of fingers from a touchpad event.

    Declaration

    Swift

    @inlinable
    func getNFingers() -> Int
  • getPinchAngleDelta() Extension method

    Extracts the angle delta from a touchpad pinch event.

    Declaration

    Swift

    @inlinable
    func getPinchAngleDelta() -> CDouble
  • getPinchScale() Extension method

    Extracts the scale from a touchpad pinch event.

    Declaration

    Swift

    @inlinable
    func getPinchScale() -> CDouble
  • gesturePhase Extension method

    Extracts the touchpad gesture phase from a touchpad event.

    Declaration

    Swift

    @inlinable
    var gesturePhase: GdkTouchpadGesturePhase { get }
  • nFingers Extension method

    Extracts the number of fingers from a touchpad event.

    Declaration

    Swift

    @inlinable
    var nFingers: Int { get }
  • pinchAngleDelta Extension method

    Extracts the angle delta from a touchpad pinch event.

    Declaration

    Swift

    @inlinable
    var pinchAngleDelta: CDouble { get }
  • pinchScale Extension method

    Extracts the scale from a touchpad pinch event.

    Declaration

    Swift

    @inlinable
    var pinchScale: CDouble { get }