Class
GdkDragContext
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
.
since: 2.22
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.
since: 3.20
gdk_drag_context_get_selected_action
Determines the action chosen by the drag destination.
since: 2.22
gdk_drag_context_get_source_window
Returns the GdkWindow
where the DND operation started.
since: 2.22
gdk_drag_context_get_suggested_action
Determines the suggested drag action of the context.
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.
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.
since: 3.20
Signals
Gdk.DragContext::action-changed
A new action is being chosen for the drag and drop operation.
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.
since: 3.20
Gdk.DragContext::drop-performed
The drag and drop operation was performed on an accepting client.
since: 3.20
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.