Gtk.TreeDragDest¶
- Implementations:
Methods¶
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gtk.TreeDragDest¶
- Bases:
- Structure:
Interface for Drag-and-Drop destinations in
GtkTreeView
.Deprecated since version 4.10: List views use widgets to display their contents. You can use [class`Gtk`.DropTarget] to implement a drop destination
- drag_data_received(dest, value)[source]¶
- Parameters:
dest (
Gtk.TreePath
) – row to drop in front ofvalue (
GObject.Value
) – data to drop
- Returns:
whether a new row was created before position dest
- Return type:
Asks the
GtkTreeDragDest
to insert a row before the path dest, deriving the contents of the row from value. If dest is outside the tree so that inserting before it is impossible,False
will 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!Deprecated since version 4.10: Use list models instead
- row_drop_possible(dest_path, value)[source]¶
- Parameters:
dest_path (
Gtk.TreePath
) – destination rowvalue (
GObject.Value
) – the data being dropped
- 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 in value 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.Deprecated since version 4.10: Use list models instead
- do_drag_data_received(dest, value) virtual¶
- Parameters:
dest (
Gtk.TreePath
) – row to drop in front ofvalue (
GObject.Value
) – data to drop
- Returns:
whether a new row was created before position dest
- Return type:
Asks the
GtkTreeDragDest
to insert a row before the path dest, deriving the contents of the row from value. If dest is outside the tree so that inserting before it is impossible,False
will 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!Deprecated since version 4.10: Use list models instead
- do_row_drop_possible(dest_path, value) virtual¶
- Parameters:
dest_path (
Gtk.TreePath
) – destination rowvalue (
GObject.Value
) – the data being dropped
- 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 in value 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.Deprecated since version 4.10: Use list models instead