Package org.gnome.gtk
Interface TreeDragSource
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
ListStore,TreeDragSource.TreeDragSource$Impl,TreeModelFilter,TreeModelSort,TreeStore
Deprecated.
Interface for Drag-and-Drop destinations in
GtkTreeView.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.The TreeDragSource$Impl type represents a native instance of the TreeDragSource interface.static classDeprecated. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandragDataDelete(TreePath path) Deprecated.Use list models insteaddefault @Nullable ContentProviderdragDataGet(TreePath path) Deprecated.Use list models insteadstatic @Nullable TypegetType()Deprecated.Get the GType of the TreeDragSource classdefault booleanrowDraggable(TreePath path) Deprecated.Use list models instead
-
Method Details
-
getType
Deprecated.Get the GType of the TreeDragSource class- Returns:
- the GType
-
dragDataDelete
Deprecated.Use list models insteadAsks theGtkTreeDragSourceto delete the row atpath,because it was moved somewhere else via drag-and-drop. Returnsfalseif the deletion fails becausepathno longer exists, or for some model-specific reason. Should robustly handle apathno longer found in the model!- Parameters:
path- row that was being dragged- Returns:
trueif the row was successfully deleted
-
dragDataGet
Deprecated.Use list models insteadAsks theGtkTreeDragSourceto return aGdkContentProviderrepresenting the row atpath.Should robustly handle apathno longer found in the model!- Parameters:
path- row that was dragged- Returns:
- a
GdkContentProviderfor the givenpath
-
rowDraggable
Deprecated.Use list models insteadAsks theGtkTreeDragSourcewhether 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:
path- row on which user is initiating a drag- Returns:
trueif the row can be dragged
-
DragSourceto implement a drag source