Gtk.TreeDragDest - Interfaces - Gtk 3.0 (original) (raw)
g GObject.GInterface GObject.GInterface Gtk.TreeDragDest Gtk.TreeDragDest GObject.GInterface->Gtk.TreeDragDest
Implementations:
Methods¶
drag_data_received (dest, selection_data) |
---|
row_drop_possible (dest_path, selection_data) |
Virtual Methods¶
do_drag_data_received (dest, selection_data) |
---|
do_row_drop_possible (dest_path, selection_data) |
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
class Gtk.TreeDragDest¶
Bases:
Structure:
drag_data_received(dest, selection_data)[source]¶
Parameters:
- dest (Gtk.TreePath) – row to drop in front of
- selection_data (Gtk.SelectionData) – data to drop
Returns:
whether a new row was created before position dest
Return type:
Asks the Gtk.TreeDragDest to insert a row before the path dest, deriving the contents of the row from selection_data. If dest is outside the tree so that inserting before it is impossible, Falsewill be returned. Also, False may be returned if the new row is not created for some model-specific reason. Should robustly handle a dest no longer found in the model!
row_drop_possible(dest_path, selection_data)[source]¶
Parameters:
- dest_path (Gtk.TreePath) – destination row
- selection_data (Gtk.SelectionData) – the data being dragged
Returns:
True if a drop is possible before dest_path
Return type:
Determines whether a drop is possible before the given dest_path, at the same depth as dest_path. i.e., can we drop the data inselection_data at that location. dest_path does not have to exist; the return value will almost certainly be False if the parent of dest_path doesn’t exist, though.
do_drag_data_received(dest, selection_data) virtual¶
Parameters:
- dest (Gtk.TreePath) – row to drop in front of
- selection_data (Gtk.SelectionData) – data to drop
Returns:
whether a new row was created before position dest
Return type:
Asks the Gtk.TreeDragDest to insert a row before the path dest, deriving the contents of the row from selection_data. If dest is outside the tree so that inserting before it is impossible, Falsewill be returned. Also, False may be returned if the new row is not created for some model-specific reason. Should robustly handle a dest no longer found in the model!
do_row_drop_possible(dest_path, selection_data) virtual¶
Parameters:
- dest_path (Gtk.TreePath) – destination row
- selection_data (Gtk.SelectionData) – the data being dragged
Returns:
True if a drop is possible before dest_path
Return type:
Determines whether a drop is possible before the given dest_path, at the same depth as dest_path. i.e., can we drop the data inselection_data at that location. dest_path does not have to exist; the return value will almost certainly be False if the parent of dest_path doesn’t exist, though.