gdk.drag_context

Module for [DragContext] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
DragContext self() nothrowReturns `this`, for use in `with` statements.
DragContextGidBuilder builder() static nothrowGet builder for [gdk.drag_context.DragContext] Returns: New builder object
gdk.types.DragAction getActions() nothrowDetermines the bitmask of actions proposed by the source if [gdk.drag_context.DragContext.getSuggestedAction] returns [gdk.types.DragAction.Ask]. Returns: the #GdkDragAction flags
gdk.window.Window getDestWindow() nothrowReturns the destination window for the DND operation. Returns: a #GdkWindow
gdk.device.Device getDevice() nothrowReturns the #GdkDevice associated to the drag context. Returns: The #GdkDevice associated to context.
gdk.window.Window getDragWindow() nothrowReturns the window on which the drag icon should be rendered during the drag operation. Note that the window may not be available until the drag operation has begun. GDK will move the window in acc...
gdk.types.DragProtocol getProtocol() nothrowReturns the drag protocol that is used by this context. Returns: the drag protocol
gdk.types.DragAction getSelectedAction() nothrowDetermines the action chosen by the drag destination. Returns: a #GdkDragAction value
gdk.window.Window getSourceWindow() nothrowReturns the #GdkWindow where the DND operation started. Returns: a #GdkWindow
gdk.types.DragAction getSuggestedAction() nothrowDetermines the suggested drag action of the context. Returns: a #GdkDragAction value
bool manageDnd(gdk.window.Window ipcWindow, gdk.types.DragAction actions) nothrowRequests the drag and drop operation to be managed by context. When a drag and drop operation becomes managed, the #GdkDragContext will internally handle all input and source-side #GdkEventDND even...
void setDevice(gdk.device.Device device) nothrowAssociates a #GdkDevice to context, so all Drag and Drop events for context are emitted as if they came from this device.
void setHotspot(int hotX, int hotY) nothrowSets the position of the drag window that will be kept under the cursor hotspot. Initially, the hotspot is at the top left corner of the drag window.
gulong connectActionChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gdk.types.DragAction))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gdk.drag_context.DragContext))) && Parameters!T.length < 3) nothrowConnect to `ActionChanged` signal.
gulong connectCancel(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gdk.types.DragCancelReason))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gdk.drag_context.DragContext))) && Parameters!T.length < 3) nothrowConnect to `Cancel` signal.
gulong connectDndFinished(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gdk.drag_context.DragContext))) && Parameters!T.length < 2) nothrowConnect to `DndFinished` signal.
gulong connectDropPerformed(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gdk.drag_context.DragContext))) && Parameters!T.length < 3) nothrowConnect to `DropPerformed` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for gdk.drag_context.DragContext

Methods
DragContext build() nothrowCreate object from builder. Returns: New object