Gnome::Gtk4::R-TreeDragSource
Description
Interface for Drag-and-Drop destinations in Gnome::Gtk4::TreeView.
Methods
drag-data-delete
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Asks the Gnome::Gtk4::R-TreeDragSource 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!
method drag-data-delete ( N-Object $path --> Bool )
$path; row that was being dragged
Return value; True
if the row was successfully deleted.
drag-data-get
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Asks the Gnome::Gtk4::R-TreeDragSource to return a Gnome::Gdk4::ContentProvider representing the row at $path
. Should robustly handle a $path
no longer found in the model!
method drag-data-get ( N-Object $path --> N-Object )
$path; row that was dragged
Return value; a Gnome::Gdk4::ContentProvider for the given $path
.
row-draggable
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Asks the Gnome::Gtk4::R-TreeDragSource 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.
method row-draggable ( N-Object $path --> Bool )
$path; row on which user is initiating a drag
Return value; True
if the row can be dragged.