EventDNDProtocol

public protocol EventDNDProtocol

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

Generated during DND operations.

  • ptr

    Untyped pointer to the underlying GdkEventDND instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkEventDND instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

EventDND Record: EventDNDProtocol extension (methods and fields)

  • type Extension method

    the type of the event (GDK_DRAG_ENTER, GDK_DRAG_LEAVE, GDK_DRAG_MOTION, GDK_DRAG_STATUS, GDK_DROP_START or GDK_DROP_FINISHED).

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

    the GdkDragContext for the current DND operation.

    Declaration

    Swift

    @inlinable
    var context: DragContextRef! { get set }
  • time Extension method

    the time of the event in milliseconds.

    Declaration

    Swift

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

    the x coordinate of the pointer relative to the root of the screen, only set for GDK_DRAG_MOTION and GDK_DROP_START.

    Declaration

    Swift

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

    the y coordinate of the pointer relative to the root of the screen, only set for GDK_DRAG_MOTION and GDK_DROP_START.

    Declaration

    Swift

    @inlinable
    var yRoot: gshort { get set }