EventTouchpadPinchProtocol

public protocol EventTouchpadPinchProtocol

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

Generated during touchpad swipe gestures.

  • ptr

    Untyped pointer to the underlying GdkEventTouchpadPinch instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventTouchpadPinch instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GdkEventTouchpadPinch>! { get }
  • Required Initialiser for types conforming to EventTouchpadPinchProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventTouchpadPinch Record: EventTouchpadPinchProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_TOUCHPAD_PINCH)

    Declaration

    Swift

    @inlinable
    var type: GdkEventType { get set }
  • window Extension method

    the window which received the event

    Declaration

    Swift

    @inlinable
    var window: WindowRef! { get set }
  • sendEvent Extension method

    true if the event was sent explicitly

    Declaration

    Swift

    @inlinable
    var sendEvent: gint8 { get set }
  • phase Extension method

    the current phase of the gesture

    Declaration

    Swift

    @inlinable
    var phase: gint8 { get set }
  • nFingers Extension method

    The number of fingers triggering the pinch

    Declaration

    Swift

    @inlinable
    var nFingers: gint8 { get set }
  • time Extension method

    the time of the event in milliseconds

    Declaration

    Swift

    @inlinable
    var time: guint32 { get set }
  • x Extension method

    The X coordinate of the pointer

    Declaration

    Swift

    @inlinable
    var x: gdouble { get set }
  • y Extension method

    The Y coordinate of the pointer

    Declaration

    Swift

    @inlinable
    var y: gdouble { get set }
  • dx Extension method

    Movement delta in the X axis of the swipe focal point

    Declaration

    Swift

    @inlinable
    var dx: gdouble { get set }
  • dy Extension method

    Movement delta in the Y axis of the swipe focal point

    Declaration

    Swift

    @inlinable
    var dy: gdouble { get set }
  • angleDelta Extension method

    The angle change in radians, negative angles denote counter-clockwise movements

    Declaration

    Swift

    @inlinable
    var angleDelta: gdouble { get set }
  • scale Extension method

    The current scale, relative to that at the time of the corresponding GDK_TOUCHPAD_GESTURE_PHASE_BEGIN event

    Declaration

    Swift

    @inlinable
    var scale: gdouble { get set }
  • xRoot Extension method

    The X coordinate of the pointer, relative to the root of the screen.

    Declaration

    Swift

    @inlinable
    var xRoot: gdouble { get set }
  • yRoot Extension method

    The Y coordinate of the pointer, relative to the root of the screen.

    Declaration

    Swift

    @inlinable
    var yRoot: gdouble { get set }
  • state Extension method

    a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.

    Declaration

    Swift

    @inlinable
    var state: ModifierType { get set }