MotionEventProtocol

public protocol MotionEventProtocol : EventProtocol

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

An event related to a pointer or touch device motion.

  • ptr

    Untyped pointer to the underlying GdkMotionEvent instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkMotionEvent instance.

    Default Implementation

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

    Declaration

    Swift

    var motion_event_ptr: UnsafeMutablePointer<GdkMotionEvent>! { get }
  • Required Initialiser for types conforming to MotionEventProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)