[−][src]Trait gtk::TreeDragSourceExt
Trait containing all TreeDragSource methods.
Implementors
ListStore, TreeDragSource, TreeModelFilter, TreeModelSort, TreeStore
Required methods
fn drag_data_delete(&self, path: &mut TreePath) -> bool
Asks the 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!
path
row that was being dragged
Returns
true if the row was successfully deleted
fn drag_data_get(
&self,
path: &mut TreePath,
selection_data: &mut SelectionData
) -> bool
&self,
path: &mut TreePath,
selection_data: &mut SelectionData
) -> bool
Asks the TreeDragSource to 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 that was dragged
selection_data
a SelectionData to fill with data
from the dragged row
Returns
true if data of the required type was provided
fn row_draggable(&self, path: &mut TreePath) -> bool
Implementors
impl<O: IsA<TreeDragSource>> TreeDragSourceExt for O[src]
fn drag_data_delete(&self, path: &mut TreePath) -> bool[src]
fn drag_data_get(
&self,
path: &mut TreePath,
selection_data: &mut SelectionData
) -> bool[src]
&self,
path: &mut TreePath,
selection_data: &mut SelectionData
) -> bool