Gtk2::T...odelSort(3)

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

πŸ’– NAME πŸ’–

Gtk2::TreeModelSort β€” bestie, it's literally just a wrapper for GtkTreeModelSort πŸŽ€


🌸 HIERARCHY 🌸

Glib::Object
+----Gtk2::TreeModelSort

✨ INTERFACES ✨

  • Gtk2::TreeModel
  • Gtk2::TreeSortable
  • Gtk2::TreeDragSource

πŸ’… METHODS πŸ’…

🌟 treemodel = Gtk2::TreeModelSort->new ($child_model)

🌟 treemodel = Gtk2::TreeModelSort->new (model => $child_model)

  • $child_model (Gtk2::TreeModel) β€” the tree model you're proxying. The whole point. The main character, if you will πŸ‘‘

These are aliases for "new_with_model". Heads up tho β€” before Gtk2 1.120, "new" resolved to Glib::Object::new, which would let you create an invalid object if the required property "model" wasn't supplied. Not the vibe. πŸ™ˆ


🌟 treemodelsort = Gtk2::TreeModelSort->new_with_model ($child_model)

  • $child_model (Gtk2::TreeModel) β€” the model being wrapped, periodt.

🌟 $tree_model_sort->clear_cache

No args, no notes, just clearing the cache. Slay. ✨


🌟 treeiter = $tree_model_sort->convert_child_iter_to_iter ($child_iter)

  • $child_iter (Gtk2::TreeIter) β€” the child-side iter you want translated into sorted-side language πŸ¦‹

🌟 treepath or undef = $tree_model_sort->convert_child_path_to_path ($child_path)

  • $child_path (Gtk2::TreePath) β€” the child path to convert.

Returns a path, or undef, iykyk 😭


🌟 treeiter = $tree_model_sort->convert_iter_to_child_iter ($sorted_iter)

  • $sorted_iter (Gtk2::TreeIter) β€” sorted-side iter, going back to child town.

🌟 treepath or undef = $tree_model_sort->convert_path_to_child_path ($sorted_path)

  • $sorted_path (Gtk2::TreePath) β€” the sorted path to convert.

Also possibly undef. The duality πŸ’€


🌟 boolean = $tree_model_sort->iter_is_valid ($iter)

  • $iter (Gtk2::TreeIter) β€” the iter in question.

Since: gtk+ 2.2


🌟 treemodel = $tree_model->get_model

Grab the model. That's it, that's the method 🫢


🌟 $tree_model_sort->reset_default_sort_func

Reset the default sort function. Fresh start energy 🌈


πŸŽ€ PROPERTIES πŸŽ€

  • 'model' (Gtk2::TreeModel : default undef : readable / writable / construct-only / private / static-nick / static-blurb) β€” the model for the TreeModelSort to sort πŸ’–

⭐ SEE ALSO ⭐

  • Gtk2
  • Glib::Object

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

This software is licensed under the LGPL. See Gtk2 for a full notice.


okay bestie that's the whole page, no cap πŸ’– this was Gtk2::T...odelSort(3) from the User Contributed Perl Documentation, generated by perl v5.42.0 on 2025-07-25. go sort something iconic πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from