Gtk.TreeDragSource¶
| Implementations: | |
|---|---|
| Gtk.ListStore,Gtk.TreeModelFilter,Gtk.TreeModelSort,Gtk.TreeStore | |
Methods¶
| drag_data_delete(path) | |
| drag_data_get(path, selection_data) | |
| row_draggable(path) | 
Virtual Methods¶
| do_drag_data_delete(path) | |
| do_drag_data_get(path, selection_data) | |
| do_row_draggable(path) | 
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- 
class Gtk.TreeDragSource¶
- Bases: - GObject.GInterface- Structure: - Gtk.TreeDragSourceIface- 
drag_data_delete(path)[source]¶
- Parameters: - path ( - Gtk.TreePath) – row that was being dragged- Returns: - Trueif the row was successfully deleted- Return type: - bool- Asks the - Gtk.TreeDragSourceto delete the row at path, because it was moved somewhere else via drag-and-drop. Returns- Falseif 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!
 - 
drag_data_get(path, selection_data)[source]¶
- Parameters: - path (Gtk.TreePath) – row that was dragged
- selection_data (Gtk.SelectionData) – aGtk.SelectionDatato fill with data from the dragged row
 - Returns: - Trueif data of the required type was provided- Return type: - Asks the - Gtk.TreeDragSourceto fill in selection_data with a representation of the row at path. selection_data->target gives the required type of the data. Should robustly handle a path no longer found in the model!
- path (
 - 
row_draggable(path)[source]¶
- Parameters: - path ( - Gtk.TreePath) – row on which user is initiating a drag- Returns: - Trueif the row can be dragged- Return type: - bool- Asks the - Gtk.TreeDragSourcewhether 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.
 - 
do_drag_data_delete(path) virtual¶
- Parameters: - path ( - Gtk.TreePath) – row that was being dragged- Returns: - Trueif the row was successfully deleted- Return type: - bool- Asks the - Gtk.TreeDragSourceto delete the row at path, because it was moved somewhere else via drag-and-drop. Returns- Falseif 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!
 - 
do_drag_data_get(path, selection_data) virtual¶
- Parameters: - path (Gtk.TreePath) – row that was dragged
- selection_data (Gtk.SelectionData) – aGtk.SelectionDatato fill with data from the dragged row
 - Returns: - Trueif data of the required type was provided- Return type: - Asks the - Gtk.TreeDragSourceto fill in selection_data with a representation of the row at path. selection_data->target gives the required type of the data. Should robustly handle a path no longer found in the model!
- path (
 - 
do_row_draggable(path) virtual¶
- Parameters: - path ( - Gtk.TreePath) – row on which user is initiating a drag- Returns: - Trueif the row can be dragged- Return type: - bool- Asks the - Gtk.TreeDragSourcewhether 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.
 
-