DNDEventProtocol

public protocol DNDEventProtocol : EventProtocol

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

An event related to drag and drop operations.

  • ptr

    Untyped pointer to the underlying GdkDNDEvent instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GdkDNDEvent instance.

    Default Implementation

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

    Declaration

    Swift

    var dnd_event_ptr: UnsafeMutablePointer<GdkDNDEvent>! { get }
  • Required Initialiser for types conforming to DNDEventProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

DNDEvent Class: DNDEventProtocol extension (methods and fields)

  • getDrop() Extension method

    Gets the GdkDrop object from a DND event.

    Declaration

    Swift

    @inlinable
    func getDrop() -> DropRef!
  • drop Extension method

    Gets the GdkDrop object from a DND event.

    Declaration

    Swift

    @inlinable
    var drop: DropRef! { get }