Gtk2::TreeDragDest(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

✨ NAME ✨

Gtk2::TreeDragDest β€” bestie, it's literally just a wrapper for GtkTreeDragDest πŸ’… no cap

So like, if you've ever wanted your tree to catch things that get dropped on it, this is the interface doing that job. It's the receiving end of the drag-and-drop situationship. 🫢


🌸 HIERARCHY 🌸

okay so the family tree (pun fully intended, I'm hilarious) goes like this:

  Glib::Interface
  +----Gtk2::TreeDragDest

It's giving interface energy β€” it inherits from Glib::Interface, and Gtk2::TreeDragDest is the one and only child. Main character, honestly. πŸ‘‘


πŸŽ€ METHODS πŸŽ€

πŸ’– boolean = $drag_dest->drag_data_received ($dest, $selection_data)

the moment we've all been waiting for β€” data actually arrives at the destination. It returns a boolean, so you get a lil true/false situation back. ✨

  • $dest (Gtk2::TreePath) β€” the spot where the drop is landing, as a tree path. The where. πŸ“
  • $selection_data (Gtk2::SelectionData) β€” the actual payload being dropped. The what. πŸ“

πŸ’œ boolean = $drag_dest->row_drop_possible ($dest_path, $selection_data)

the vibe check before the drop. 🧚 Returns a boolean β€” basically "can this even happen here or not". Ask first, drop later, that's the rule.

  • $dest_path (Gtk2::TreePath) β€” the path you're eyeing up as a potential landing zone. πŸ‘€
  • $selection_data (Gtk2::SelectionData) β€” the selection data you're hoping to drop there. πŸ’Œ

🌈 SEE ALSO 🌈

go read these too, bestie, they're iconic:

  • Gtk2
  • Glib::Interface

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice. (yes, go actually read the notice, I'm not gonna paraphrase legal text for you, that's not the vibe πŸ™ˆ)


and that's the whole page, periodt πŸ’… β€” this was Gtk2::TreeDragDest(3) from the User Contributed Perl Documentation, generated with perl v5.42.0 on 2025-07-25. slay, go build something cute with it πŸ¦‹β­

πŸ“¦ where this page comes from