Next:
Gtk2::TreeModelSort
Previous:
Gtk2::TreeModel
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::TreeModelFilter



NAME

Gtk2::TreeModelFilter

HIERARCHY

  Glib::Object
  +----Gtk2::TreeModelFilter

INTERFACES

  Gtk2::TreeModel
  Gtk2::TreeDragSource

METHODS

treemodelfilter = Gtk2::TreeModelFilter->new ($child_model, $root=undef)

$filter->clear_cache

treeiter = $filter->convert_child_iter_to_iter ($child_iter)

treepath or undef = $filter->convert_child_path_to_path ($child_path)

treeiter = $filter->convert_iter_to_child_iter ($filter_iter)

treepath or undef = $path->convert_path_to_child_path ($filter_path)

treemodel = $filter->get_model

$filter->set_modify_func ($types, $func=undef, $data=undef)

func is called as

    sub myfunc {
      my ($filter, $iter, $column_num, $data) = @_;
      ...

and should return the value from the filtered model that iter row and column number.

$filter->refilter

$filter->set_visible_column ($column)

$filter->set_visible_func ($func, $data=undef)

PROPERTIES

'child-model' (Gtk2::TreeModel : readable / writable / construct-only / private)
The model for the filtermodel to filter
'virtual-root' (Gtk2::TreePath : readable / writable / construct-only / private)
The virtual root (relative to the child model) for this filtermodel

SEE ALSO

Gtk2, Glib::Object

COPYRIGHT

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

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


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:04:17 2009