Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gdk.DragContext

Class Gdk.DragContext

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-3.0.gir
C documentation: GdkDragContext
Class : DragContext
Extends: GObject.Object
Properties
None
Methods / Constructors
Method / Constructor Defined By
 
new Gdk.DragContext ()
Create a new Gdk.DragContext
Create a new Gdk.DragContext
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gdk
Method
Gdk.drag_abort (DragContext context, guint32 time_) : none
Aborts a drag without dropping.
Gdk
Method
Gdk.drag_begin (Window window, Array targets) : Gdk.DragContext
Starts a drag and creates a new drag context for it.
Gdk
Method
Gdk.drag_begin_for_device (Window window, Device device, Array targets) : Gdk.DragContext
Starts a drag and creates a new drag context for it.
Gdk
Method
Gdk.drag_drop (DragContext context, guint32 time_) : none
Drops on the current destination.
Gdk
Method
Gdk.drag_drop_succeeded (DragContext context) : gboolean
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
Gdk.drag_get_selection (DragContext context) : Gdk.Atom
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
Gdk.drag_status (DragContext context, DragAction action, guint32 time_) : none
Selects one of the actions offered by the drag source.
Gdk
Method
Gdk.drop_finish (DragContext context, gboolean success, guint32 time_) : none
Ends the drag operation after a drop.
Gdk
Method
Gdk.drop_reply (DragContext context, gboolean accepted, guint32 time_) : none
Accepts or rejects a drop.
Gtk
Method
Gtk.drag_finish (DragContext context, gboolean success, gboolean del, guint32 time_) : none
Gtk
Method
Gtk.drag_get_source_widget (DragContext context) : Gtk.Widget
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
Gtk.drag_set_icon_name (DragContext context, String icon_name, gint32 hot_x, gint32 hot_y) : none
Sets the icon for a given drag from a named themed icon.
Gtk
Method
Gtk.drag_set_icon_pixbuf (DragContext context, Pixbuf pixbuf, gint32 hot_x, gint32 hot_y) : none
Sets pixbuf as the icon for a given drag.
Gtk
Method
Gtk.drag_set_icon_stock (DragContext context, String stock_id, gint32 hot_x, gint32 hot_y) : none
Sets the icon for a given drag from a stock ID.
Gtk
Method
Gtk.drag_set_icon_surface (DragContext context, Surface surface) : none
Sets surface as the icon for a given drag.
Gtk
Method
Gtk.drag_set_icon_widget (DragContext context, Widget widget, gint32 hot_x, gint32 hot_y) : none
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
drag_drop (Widget self, DragContext drag_context, gint32 x, gint32 y, guint32 time) : gboolean
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
drag_failed (Widget self, DragContext drag_context, DragResult result) : gboolean
The ::drag-failed signal is emitted on the drag source when a drag has
failed.
Gtk.Widget
Signal
drag_leave (Widget self, DragContext drag_context, guint32 time) : none
The ::drag-leave signal is emitted on the drop site when the cursor
leaves the widget.
Gtk.Widget
Signal
drag_motion (Widget self, DragContext drag_context, gint32 x, gint32 y, guint32 time) : gboolean
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
drag_begin (TargetList targets, DragAction actions, gint32 button, Event event) : Gdk.DragContext
Initiates a drag on the source side.
Gtk.Widget
Method
drag_dest_find_target (DragContext context, TargetList target_list) : Gdk.Atom
Looks for a match between the supported targets of context and the
returning GDK_NONE.
Gtk.Widget
Method
drag_get_data (DragContext context, Atom target, guint32 time_) : none
Get the data for a drag or drop
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:55 GMT+0800 (HKT)