Gtk.TreeDragDest

g GObject.GInterface GObject.GInterface Gtk.TreeDragDest Gtk.TreeDragDest GObject.GInterface->Gtk.TreeDragDest

Implementations:

Gtk.ListStore, Gtk.TreeStore

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:

GObject.GInterface

Structure:

Gtk.TreeDragDestIface

drag_data_received(dest, selection_data)[source]
Parameters:
Returns:

whether a new row was created before position dest

Return type:

bool

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, 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!

row_drop_possible(dest_path, selection_data)[source]
Parameters:
Returns:

True if a drop is possible before dest_path

Return type:

bool

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 selection_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:
Returns:

whether a new row was created before position dest

Return type:

bool

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, 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!

do_row_drop_possible(dest_path, selection_data) virtual
Parameters:
Returns:

True if a drop is possible before dest_path

Return type:

bool

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 selection_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.