Class

GdkDragContext

Description

final class Gdk.DragContext : GObject.Object {
  /* No available fields */
}
No description available.

Hierarchy

hierarchy this GdkDragContext ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

gdk_drag_context_get_actions

Determines the bitmask of actions proposed by the source if gdk_drag_context_get_suggested_action() returns GDK_ACTION_ASK.

Available since: 2.22

gdk_drag_context_get_dest_window

Returns the destination window for the DND operation.

Available since: 3.0

gdk_drag_context_get_device

Returns the GdkDevice associated to the drag context.

gdk_drag_context_get_drag_window

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 accordance with the ongoing drag operation. The window is owned by context and will be destroyed when the drag operation is over.

Available since: 3.20

gdk_drag_context_get_protocol

Returns the drag protocol that is used by this context.

Available since: 3.0

gdk_drag_context_get_selected_action

Determines the action chosen by the drag destination.

Available since: 2.22

gdk_drag_context_get_source_window

Returns the GdkWindow where the DND operation started.

Available since: 2.22

gdk_drag_context_get_suggested_action

Determines the suggested drag action of the context.

Available since: 2.22

gdk_drag_context_list_targets

Retrieves the list of targets of the context.

Available since: 2.22

gdk_drag_context_manage_dnd

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 events as required by the windowing system.

Available since: 3.20

gdk_drag_context_set_device

Associates a GdkDevice to context, so all Drag and Drop events for context are emitted as if they came from this device.

gdk_drag_context_set_hotspot

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.

Available since: 3.20

Methods inherited from GObject (42)

Signals

Gdk.DragContext::action-changed

A new action is being chosen for the drag and drop operation.

Available since: 3.20

Gdk.DragContext::cancel

The drag and drop operation was cancelled.

Available since: 3.20

Gdk.DragContext::dnd-finished

The drag and drop operation was finished, the drag destination finished reading all data. The drag source can now free all miscellaneous data.

Available since: 3.20

Gdk.DragContext::drop-performed

The drag and drop operation was performed on an accepting client.

Available since: 3.20

Signals inherited from GObject (1)