Learn R Programming

RGtk2 (version 2.8.8)

GtkTreeModelFilter: GtkTreeModelFilter

Description

A GtkTreeModel which hides parts of an underlying tree model

Arguments

Methods and Functions

gtkTreeModelFilterNew(child.model, root = NULL) gtkTreeModelFilterSetVisibleFunc(object, func, data = NULL) gtkTreeModelFilterSetModifyFunc(object, types, func, data = NULL) gtkTreeModelFilterSetVisibleColumn(object, column) gtkTreeModelFilterGetModel(object) gtkTreeModelFilterConvertChildIterToIter(object, child.iter) gtkTreeModelFilterConvertIterToChildIter(object, filter.iter) gtkTreeModelFilterConvertChildPathToPath(object, child.path) gtkTreeModelFilterConvertPathToChildPath(object, filter.path) gtkTreeModelFilterRefilter(object) gtkTreeModelFilterClearCache(object)

Hierarchy

\link{GObject} +----GtkTreeModelFilter

Interfaces

GtkTreeModelFilter implements GtkTreeModel and GtkTreeDragSource.

Detailed Description

A GtkTreeModelFilter is a tree model which wraps another tree model, and can do the following things:
  • Filter specific rows, based on data from a "visible column", a column storing booleans indicating whether the row should be filtered or not, or based on the return value of a "visible function", which gets a model, iter and user\_data and returns a boolean indicating whether the row should be filtered or not.
  • Modify the "appearance" of the model, using a modify function. This is extremely powerful and allows for just changing some values and also for creating a completely different model based on the given child model.
  • Set a different root node, also known as a "virtual root". You can pass in aGtkTreePathindicating the root node for the filter at construction time.

References

http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeModelFilter.html

See Also

GtkTreeModelSort