gtk.tree_drag_source_mixin

Module for TreeDragSource interface mixin

Templates 2

tmplTreeDragSourceT()

Interface for Drag-and-Drop destinations in gtk.tree_view.TreeView.

Deprecated

List views use widgets to display their contents.

You can use gtk.drag_source.DragSource to implement a drag source

Functions
bool dragDataDelete(gtk.tree_path.TreePath path)

Asks the gtk.tree_drag_source.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!

Parameters

pathrow that was being dragged

Returns

true if the row was successfully deleted

Deprecated

Use list models instead

Asks the gtk.tree_drag_source.TreeDragSource to return a gdk.content_provider.ContentProvider representing the row at path. Should robustly handle a path no longer found in the model!

Parameters

pathrow that was dragged

Returns

Deprecated

Use list models instead
bool rowDraggable(gtk.tree_path.TreePath path)

Asks the gtk.tree_drag_source.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.

Parameters

pathrow on which user is initiating a drag

Returns

true if the row can be dragged

Deprecated

Use list models instead
tmplTreeDragSourceGidBuilderT()

Fluent builder implementation template for gtk.tree_drag_source.TreeDragSource