Drag
Object Hierarchy:
Gdk.Drag
Gdk.Drag
Gdk.Drag
GLib.Object
GLib.Object
GLib.Object->Gdk.Drag
Description:
[ CCode ( type_id = "gdk_drag_get_type ()" ) ]public abstract class Drag : Object
The `GdkDrag` object represents the source of an ongoing DND operation.
A `GdkDrag` is created when a drag is started, and stays alive for duration of the DND operation. After a drag has been started with [
[email protected] ], the caller gets informed about the status of the ongoing drag operation with signals on the `GdkDrag` object.
GTK provides a higher level abstraction based on top of these functions, and so they are not normally needed in GTK applications. See the
"Drag and Drop" section of the GTK documentation for more information.
Content:
Properties:
Static methods:
Creation methods:
Methods:
public void drop_done (bool success)
Informs GDK that the drop ended.
public DragAction get_actions ()
Determines the bitmask of possible actions proposed by the source.
public unowned ContentProvider get_content ()
Returns the `GdkContentProvider` associated to the `GdkDrag` object.
public unowned Device get_device ()
Returns the `GdkDevice` associated to the `GdkDrag` object.
public unowned Display get_display ()
Gets the `GdkDisplay` that the drag object was created for.
public unowned Surface ? get_drag_surface ()
Returns the surface on which the drag icon should be rendered during
the drag operation.
public unowned ContentFormats get_formats ()
Retrieves the formats supported by this `GdkDrag` object.
public DragAction get_selected_action ()
Determines the action chosen by the drag destination.
public unowned Surface get_surface ()
Returns the `GdkSurface` where the drag originates.
public void set_hotspot (int hot_x, int hot_y)
Sets the position of the drag surface that will be kept under the
cursor hotspot.
Signals:
public signal void cancel (DragCancelReason reason)
Emitted when the drag operation is cancelled.
public signal void dnd_finished ()
Emitted when the destination side has finished reading all data.
public signal void drop_performed ()
Emitted when the drop operation is performed on an accepting client.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref