gdk.drag_context

Module for [DragContext] class

Types 3

Methods
GType _gType() @property
DragContext self()Returns `this`, for use in `with` statements.
DragContextGidBuilder builder()Get builder for [gdk.drag_context.DragContext] Returns: New builder object
gdk.types.DragAction getActions()Determines 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()Returns the destination window for the DND operation. Returns: a #GdkWindow
gdk.device.Device getDevice()Returns the #GdkDevice associated to the drag context. Returns: The #GdkDevice associated to context.
gdk.window.Window getDragWindow()Returns 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()Returns the drag protocol that is used by this context. Returns: the drag protocol
gdk.types.DragAction getSelectedAction()Determines the action chosen by the drag destination. Returns: a #GdkDragAction value
gdk.window.Window getSourceWindow()Returns the #GdkWindow where the DND operation started. Returns: a #GdkWindow
gdk.types.DragAction getSuggestedAction()Determines the suggested drag action of the context. Returns: a #GdkDragAction value
bool manageDnd(gdk.window.Window ipcWindow, gdk.types.DragAction actions)Requests 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)Associates 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)Sets 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)Connect 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)Connect 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)Connect 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)Connect to `DropPerformed` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gdk.drag_context.DragContext]