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
GdkEventDND
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
type
Extension methodthe type of the event (
GDK_DRAG_ENTER
,GDK_DRAG_LEAVE
,GDK_DRAG_MOTION
,GDK_DRAG_STATUS
,GDK_DROP_START
orGDK_DROP_FINISHED
).Declaration
Swift
@inlinable var type: GdkEventType { get set }
-
window
Extension methodthe window which received the event.
Declaration
Swift
@inlinable var window: WindowRef! { get set }
-
sendEvent
Extension methodtrue
if the event was sent explicitly.Declaration
Swift
@inlinable var sendEvent: gint8 { get set }
-
context
Extension methodthe
GdkDragContext
for the current DND operation.Declaration
Swift
@inlinable var context: DragContextRef! { get set }
-
time
Extension methodthe time of the event in milliseconds.
Declaration
Swift
@inlinable var time: guint32 { get set }
-
xRoot
Extension methodthe x coordinate of the pointer relative to the root of the screen, only set for
GDK_DRAG_MOTION
andGDK_DROP_START
.Declaration
Swift
@inlinable var xRoot: gshort { get set }
-
yRoot
Extension methodthe y coordinate of the pointer relative to the root of the screen, only set for
GDK_DRAG_MOTION
andGDK_DROP_START
.Declaration
Swift
@inlinable var yRoot: gshort { get set }