Interface for Drag-and-Drop destinations in GtkTreeView.
<group>Trees and Lists</group>
function "+" (W : Gtk_Tree_Drag_Source) return Gtk_Tree_Drag_Source
function Drag_Data_Delete
(Self : Gtk_Tree_Drag_Source;
Path : Gtk.Tree_Model.Gtk_Tree_Path) return Boolean
Asks the GtkTreeDragSource to delete the row at Path, because it was moved somewhere else via drag-and-drop. Returns False if the deletion fails because Path no longer exists, or for some model-specific reason. Should robustly handle a Path no longer found in the model! Deprecated since 4.10, 1
row that was being dragged
True if the row was successfully deleted
function Drag_Data_Get
(Self : Gtk_Tree_Drag_Source;
Path : Gtk.Tree_Model.Gtk_Tree_Path)
return Gdk.Content_Provider.Gdk_Content_Provider
Asks the GtkTreeDragSource to return a GdkContentProvider representing the row at Path. Should robustly handle a Path no longer found in the model! Deprecated since 4.10, 1
row that was dragged
a GdkContentProvider for the given Path. Has transfer-ownership='full'.
function Get_Type return Glib.GType
type Gtk_Tree_Drag_Source is new Glib.Types.GType_Interface;
Null_Gtk_Tree_Drag_Source : constant Gtk_Tree_Drag_Source;
function Row_Draggable
(Self : Gtk_Tree_Drag_Source;
Path : Gtk.Tree_Model.Gtk_Tree_Path) return Boolean
Asks the GtkTreeDragSource whether a particular row can be used as the source of a DND operation. If the source doesn't implement this interface, the row is assumed draggable. Deprecated since 4.10, 1
row on which user is initiating a drag
True if the row can be dragged
procedure Set_Drag_Data_Delete
(Self : Tree_Drag_Source_Interface_Descr;
Handler : Virtual_Drag_Data_Delete)
procedure Set_Drag_Data_Get
(Self : Tree_Drag_Source_Interface_Descr;
Handler : Virtual_Drag_Data_Get)
procedure Set_Row_Draggable
(Self : Tree_Drag_Source_Interface_Descr;
Handler : Virtual_Row_Draggable)
See Glib.Object.Add_Interface
subtype Tree_Drag_Source_Interface_Descr is Glib.Object.Interface_Description;
type Virtual_Drag_Data_Delete is access function
(Self : Gtk_Tree_Drag_Source;
Path : System.Address) return Glib.Gboolean;
Asks the GtkTreeDragSource to delete the row at Path, because it was moved somewhere else via drag-and-drop. Returns False if the deletion fails because Path no longer exists, or for some model-specific reason. Should robustly handle a Path no longer found in the model! Deprecated since 4.10, 1
row that was being dragged
True if the row was successfully deleted
type Virtual_Drag_Data_Get is access function
(Self : Gtk_Tree_Drag_Source;
Path : System.Address) return System.Address;
Asks the GtkTreeDragSource to return a GdkContentProvider representing the row at Path. Should robustly handle a Path no longer found in the model! Deprecated since 4.10, 1
row that was dragged
a GdkContentProvider for the given Path. Has transfer-ownership='full'.
type Virtual_Row_Draggable is access function
(Self : Gtk_Tree_Drag_Source;
Path : System.Address) return Glib.Gboolean;
Asks the GtkTreeDragSource whether a particular row can be used as the source of a DND operation. If the source doesn't implement this interface, the row is assumed draggable. Deprecated since 4.10, 1
row on which user is initiating a drag
True if the row can be dragged