EventProximityProtocol

public protocol EventProximityProtocol

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

Proximity events are generated when using GDK’s wrapper for the XInput extension. The XInput extension is an add-on for standard X that allows you to use nonstandard devices such as graphics tablets. A proximity event indicates that the stylus has moved in or out of contact with the tablet, or perhaps that the user’s finger has moved in or out of contact with a touch screen.

This event type will be used pretty rarely. It only is important for XInput aware programs that are drawing their own cursor.

  • ptr

    Untyped pointer to the underlying GdkEventProximity instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventProximity instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventProximity Record: EventProximityProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_PROXIMITY_IN or GDK_PROXIMITY_OUT).

    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 }
  • time Extension method

    the time of the event in milliseconds.

    Declaration

    Swift

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

    the master device that the event originated from. Use gdk_event_get_source_device() to get the slave device.

    Declaration

    Swift

    @inlinable
    var device: DeviceRef! { get set }