Interface for Drag-and-Drop destinations in GtkTreeView.
<group>Trees and Lists</group>
function "+" (W : Gtk_Tree_Drag_Dest) return Gtk_Tree_Drag_Dest
function Drag_Data_Received
(Self : Gtk_Tree_Drag_Dest;
Dest : Gtk.Tree_Model.Gtk_Tree_Path;
Value : in out Glib.Values.GValue) return Boolean
Asks the GtkTreeDragDest to insert a row before the path Dest, deriving the contents of the row from Value. If Dest is outside the tree so that inserting before it is impossible, False will be returned. Also, False may be returned if the new row is not created for some model-specific reason. Should robustly handle a Dest no longer found in the model! Deprecated since 4.10, 1
row to drop in front of
data to drop
whether a new row was created before position Dest
function Get_Type return Glib.GType
type Gtk_Tree_Drag_Dest is new Glib.Types.GType_Interface;
Null_Gtk_Tree_Drag_Dest : constant Gtk_Tree_Drag_Dest;
function Row_Drop_Possible
(Self : Gtk_Tree_Drag_Dest;
Dest_Path : Gtk.Tree_Model.Gtk_Tree_Path;
Value : in out Glib.Values.GValue) return Boolean
Determines whether a drop is possible before the given Dest_Path, at the same depth as Dest_Path. i.e., can we drop the data in Value at that location. Dest_Path does not have to exist; the return value will almost certainly be False if the parent of Dest_Path doesn't exist, though. Deprecated since 4.10, 1
destination row
the data being dropped
True if a drop is possible before Dest_Path
procedure Set_Drag_Data_Received
(Self : Tree_Drag_Dest_Interface_Descr;
Handler : Virtual_Drag_Data_Received)
procedure Set_Row_Drop_Possible
(Self : Tree_Drag_Dest_Interface_Descr;
Handler : Virtual_Row_Drop_Possible)
See Glib.Object.Add_Interface
subtype Tree_Drag_Dest_Interface_Descr is Glib.Object.Interface_Description;
type Virtual_Drag_Data_Received is access function
(Self : Gtk_Tree_Drag_Dest;
Dest : System.Address;
Value : in out Glib.Values.GValue) return Glib.Gboolean;
Asks the GtkTreeDragDest to insert a row before the path Dest, deriving the contents of the row from Value. If Dest is outside the tree so that inserting before it is impossible, False will be returned. Also, False may be returned if the new row is not created for some model-specific reason. Should robustly handle a Dest no longer found in the model! Deprecated since 4.10, 1
row to drop in front of
data to drop
whether a new row was created before position Dest
type Virtual_Row_Drop_Possible is access function
(Self : Gtk_Tree_Drag_Dest;
Dest_Path : System.Address;
Value : in out Glib.Values.GValue) return Glib.Gboolean;
Determines whether a drop is possible before the given Dest_Path, at the same depth as Dest_Path. i.e., can we drop the data in Value at that location. Dest_Path does not have to exist; the return value will almost certainly be False if the parent of Dest_Path doesn't exist, though. Deprecated since 4.10, 1
destination row
the data being dropped
True if a drop is possible before Dest_Path