About all my projects
Gnome::Gtk4::T-treednd

Gnome::Gtk4::T-treednd

Class initialization

new

Initialization of a type class is simple and only needed when the standalone functions are used.

method new ( )

Standalone Functions

tree-create-row-drag-content

Creates a content provider for dragging $path from $tree-model.

method tree-create-row-drag-content ( N-Object() $tree-model, N-Object $path --> N-Object )
  • $tree-model; a Gnome::Gtk4::R-TreeModel.

  • $path; a row in $tree-model

Return value; a new Gnome::Gdk4::ContentProvider.

tree-get-row-drag-data

Obtains a $tree-model and $path from value of target type GTK_TYPE_TREE_ROW_DATA.

The returned path must be freed with gtk_tree_path_free().

method tree-get-row-drag-data ( N-Object $value, N-Object() $tree-model, N-Object $path --> Bool )
  • $value; a Gnome::GObject::N-Value

  • $tree-model; a Gnome::Gtk4::R-TreeModel.

  • $path; (transfer ownership: full) row in $tree-model

Return value; True if $selection-data had target type GTK_TYPE_TREE_ROW_DATA is otherwise valid.