NAME
Gtk2::Ex::TreeModelBits - miscellaneous TreeModel helpers
SYNOPSIS
use Gtk2::Ex::TreeModelBits;
FUNCTIONS
@values = Gtk2::Ex::TreeModelBits::column_contents ($model, $col)-
Return a list of all the values in column number
$colof aGtk2::TreeModelobject$model.Any tree structure in the model is flattened out for the return. A parent row's column value comes first, followed by the column values from its children, recursively, as per
$model->foreach. Gtk2::Ex::TreeModelBits::remove_matching_rows ($store, $subr)-
Remove from
$storeall rows passing$subr.$storecan be aGtk2::TreeStore, aGtk2::ListStore, or another type with the same style$store->removemethod.$subris called$want_remove = &$subr ($store, $iter)where
$iteris the row being considered and$subrshould return true if it wants to remove the row. The order rows are considered is unspecified, except that a parent row is tested before its children (the children of course tested only if the parent is not removed). @types = Gtk2::Ex::TreeModelBits::all_column_types ($model)-
Return a list of all the column types in
$model. For example to create another ListStore with the same types as an existing one,my $new_store = Gtk2::ListStore->new (Gtk2::Ex::TreeModelBits::all_column_types ($old_store));