GObject.Object
Gdk.DragContext
Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-3.0.gir |
C documentation: | GdkDragContext |
Class : | DragContext |
Extends: | GObject.Object |
None |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.DragContext
()
Create a new Gdk.DragContext
Create a new Gdk.DragContext
|
||
get_actions
()
:
Gdk.DragAction
Determines the bitmask of actions proposed by the source if
gdk_drag_context_get_suggested_action() returns GDK_ACTION_ASK.
Determines the bitmask of actions proposed by the source if
gdk_drag_context_get_suggested_action() returns GDK_ACTION_ASK.
|
Gdk.DragContext | |
get_dest_window
()
:
Gdk.Window
Returns the destination windw for the DND operation.
Returns the destination windw for the DND operation.
|
Gdk.DragContext | |
get_device
()
:
Gdk.Device
Returns the GdkDevice associated to the drag context.
Returns the GdkDevice associated to the drag context.
|
Gdk.DragContext | |
get_protocol
()
:
Gdk.DragProtocol
Returns the drag protocol thats used by this context.
Returns the drag protocol thats used by this context.
|
Gdk.DragContext | |
get_selected_action
()
:
Gdk.DragAction
Determines the action chosen by the drag destination.
Determines the action chosen by the drag destination.
|
Gdk.DragContext | |
get_source_window
()
:
Gdk.Window
Returns the GdkWindow where the DND operation started.
Returns the GdkWindow where the DND operation started.
|
Gdk.DragContext | |
get_suggested_action
()
:
Gdk.DragAction
Determines the suggested drag action of the context.
Determines the suggested drag action of the context.
|
Gdk.DragContext | |
list_targets
()
:
Array
Retrieves the list of targets of the context.
Retrieves the list of targets of the context.
|
Gdk.DragContext | |
set_device
(Device device)
:
none
Associates a GdkDevice to context, so all Drag and Drop events
for context are emitted as if they came from this device.
Associates a GdkDevice to context, so all Drag and Drop events
for context are emitted as if they came from this device.
|
Gdk.DragContext |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Aborts a drag without dropping.
|
Gdk
Method |
Starts a drag and creates a new drag context for it.
|
Gdk
Method |
Starts a drag and creates a new drag context for it.
|
Gdk
Method |
Drops on the current destination.
|
Gdk
Method |
Returns whether the dropped data has been successfully
transferred. |
Gdk
Method |
Gdk.drag_find_window_for_screen
(DragContext context, Window drag_window, Screen screen, gint32 x_root, gint32 y_root)
:
Object
Finds the destination window and DND protocol to use at the
given pointer position. |
Gdk
Method |
Returns the selection atom for the current source window.
|
Gdk
Method |
Gdk.drag_motion
(DragContext context, Window dest_window, DragProtocol protocol, gint32 x_root, gint32 y_root, DragAction suggested_action, DragAction possible_actions, guint32 time_)
:
gboolean
Updates the drag context when the pointer moves or the
set of actions changes. |
Gdk
Method |
Selects one of the actions offered by the drag source.
|
Gdk
Method |
Ends the drag operation after a drop.
|
Gdk
Method |
Accepts or rejects a drop.
|
Gtk
Method |
|
Gtk
Method |
Determines the source widget for a drag.
|
Gtk
Method |
Gtk.drag_set_icon_default
(DragContext context)
:
none
Sets the icon for a particular drag to the default
icon. |
Gtk
Method |
Sets the icon for a given drag from a named themed icon.
|
Gtk
Method |
Sets pixbuf as the icon for a given drag.
|
Gtk
Method |
Sets the icon for a given drag from a stock ID.
|
Gtk
Method |
Sets surface as the icon for a given drag.
|
Gtk
Method |
Changes the icon for a widget to a given widget.
|
Gtk.Widget
Signal |
drag_begin
(Widget self, DragContext drag_context)
:
none
The ::drag-begin signal is emitted on the drag source when a drag is
started. |
Gtk.Widget
Signal |
drag_data_delete
(Widget self, DragContext drag_context)
:
none
The ::drag-data-delete signal is emitted on the drag source when a drag
with the action GDK_ACTION_MOVE is successfully completed. |
Gtk.Widget
Signal |
drag_data_get
(Widget self, DragContext drag_context, SelectionData data, guint32 info, guint32 time)
:
none
The ::drag-data-get signal is emitted on the drag source when the drop
site requests the data which is dragged. |
Gtk.Widget
Signal |
drag_data_received
(Widget self, DragContext drag_context, gint32 x, gint32 y, SelectionData data, guint32 info, guint32 time)
:
none
The ::drag-data-received signal is emitted on the drop site when the
dragged data has been received. |
Gtk.Widget
Signal |
The ::drag-drop signal is emitted on the drop site when the user drops
the data onto the widget. |
Gtk.Widget
Signal |
drag_end
(Widget self, DragContext drag_context)
:
none
The ::drag-end signal is emitted on the drag source when a drag is
finished. |
Gtk.Widget
Signal |
The ::drag-failed signal is emitted on the drag source when a drag has
failed. |
Gtk.Widget
Signal |
The ::drag-leave signal is emitted on the drop site when the cursor
leaves the widget. |
Gtk.Widget
Signal |
The drag-motion signal is emitted on the drop site when the user
moves the cursor over the widget during a drag. |
Gtk.Widget
Method |
Initiates a drag on the source side.
|
Gtk.Widget
Method |
Looks for a match between the supported targets of context and the
returning GDK_NONE. |
Gtk.Widget
Method |
Get the data for a drag or drop
|