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.
-
Untyped pointer to the underlying
GdkEventDNDinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkEventDNDinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkEventDNDinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkEventDND>! { get } -
Required Initialiser for types conforming to
EventDNDProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type of the event (
GDK_DRAG_ENTER,GDK_DRAG_LEAVE,GDK_DRAG_MOTION,GDK_DRAG_STATUS,GDK_DROP_STARTorGDK_DROP_FINISHED).Declaration
Swift
@inlinable var type: GdkEventType { get set } -
windowExtension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set } -
sendEventExtension methodtrueif the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set } -
contextExtension methodthe
GdkDragContextfor the current DND operation.Declaration
Swift
@inlinable var context: DragContextRef! { get set } -
timeExtension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set } -
xRootExtension methodthe x coordinate of the pointer relative to the root of the screen, only set for
GDK_DRAG_MOTIONandGDK_DROP_START.Declaration
Swift
@inlinable var xRoot: gshort { get set } -
yRootExtension methodthe y coordinate of the pointer relative to the root of the screen, only set for
GDK_DRAG_MOTIONandGDK_DROP_START.Declaration
Swift
@inlinable var yRoot: gshort { get set }
View on GitHub
Install in Dash
EventDNDProtocol Protocol Reference