Module: Gtk::TreeDragSource

Defined in:
(unknown)

Overview

Interface for Drag-and-Drop destinations in GtkTreeView.

Instance Method Summary collapse

Instance Method Details

#drag_data_delete(drag_source, path) ⇒ Boolean

Returns true if the row was successfully deleted.

Parameters:

  • drag_source (Gtk::TreeDragSource)

    a GtkTreeDragSource

  • path (Gtk::TreePath)

    row that was being dragged

Returns:

  • (Boolean)

    true if the row was successfully deleted

#drag_data_get(drag_source, path) ⇒ Gdk::ContentProvider

Returns a GdkContentProvider for the given path.

Parameters:

  • drag_source (Gtk::TreeDragSource)

    a GtkTreeDragSource

  • path (Gtk::TreePath)

    row that was dragged

Returns:

  • (Gdk::ContentProvider)

    a GdkContentProvider for the given path

#row_draggable(drag_source, path) ⇒ Boolean

Returns true if the row can be dragged.

Parameters:

  • drag_source (Gtk::TreeDragSource)

    a GtkTreeDragSource

  • path (Gtk::TreePath)

    row on which user is initiating a drag

Returns:

  • (Boolean)

    true if the row can be dragged