<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Gtk.ModelView.TreeModelFilter</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-ModelView-TreeModelFilter.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gtk-0.12.0: Binding to the Gtk+ graphical user interface library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr></table><p class="caption">Graphics.UI.Gtk.ModelView.TreeModelFilter</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail </a></li><li><a href="#g:2">Class Hierarchy </a></li><li><a href="#g:3">Types </a></li><li><a href="#g:4">Constructors </a></li><li><a href="#g:5">Methods </a></li><li><a href="#g:6">Attributes </a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></code> which hides parts of an underlying tree model </p><ul><li> Module available since Gtk+ version 2.4 </li></ul></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:TreeModelFilter">TreeModelFilter</a> </li><li class="src short"><span class="keyword">class</span> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a href="#t:TreeModelFilterClass">TreeModelFilterClass</a> o </li><li class="src short"><a href="#v:castToTreeModelFilter">castToTreeModelFilter</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></li><li class="src short"><a href="#v:gTypeTreeModelFilter">gTypeTreeModelFilter</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toTreeModelFilter">toTreeModelFilter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> o => o -> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></li><li class="src short"><a href="#v:treeModelFilterNew">treeModelFilterNew</a> :: (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModelClass">TreeModelClass</a> (childModel row), <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TypedTreeModelClass">TypedTreeModelClass</a> childModel) => childModel row -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (TypedTreeModelFilter row)</li><li class="src short"><a href="#v:treeModelFilterSetVisibleFunc">treeModelFilterSetVisibleFunc</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>) -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:treeModelFilterSetVisibleColumn">treeModelFilterSetVisibleColumn</a> :: (<a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> (self row), <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TypedTreeModelClass">TypedTreeModelClass</a> self) => self row -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:ColumnId">ColumnId</a> row <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:treeModelFilterGetModel">treeModelFilterGetModel</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a>)</li><li class="src short"><a href="#v:treeModelFilterConvertChildIterToIter">treeModelFilterConvertChildIterToIter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a></li><li class="src short"><a href="#v:treeModelFilterConvertIterToChildIter">treeModelFilterConvertIterToChildIter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a></li><li class="src short"><a href="#v:treeModelFilterConvertChildPathToPath">treeModelFilterConvertChildPathToPath</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></li><li class="src short"><a href="#v:treeModelFilterConvertPathToChildPath">treeModelFilterConvertPathToChildPath</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></li><li class="src short"><a href="#v:treeModelFilterRefilter">treeModelFilterRefilter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:treeModelFilterClearCache">treeModelFilterClearCache</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:treeModelFilterChildModel">treeModelFilterChildModel</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></li><li class="src short"><a href="#v:treeModelFilterVirtualRoot">treeModelFilterVirtualRoot</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></li></ul></div><div id="interface"><h1 id="g:1">Detail </h1><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></code> is a tree model which wraps another tree model, and can do the following things: </p><ul><li> Filter specific rows, based on a function that examines each row indicating whether the row should be shown or not, or based on the return value of a visibility function, which is passed the <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a></code> of the row and returns a Boolean indicating whether the row should be shown or not. </li><li> Set a different root node, also known as a "virtual root". You can pass in a <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></code> indicating the root node for the filter at construction time. </li></ul></div><h1 id="g:2">Class Hierarchy </h1><div class="doc"><pre> | <code><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObject">GObject</a></code> | +----TreeModelFilter </pre></div><h1 id="g:3">Types </h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TreeModelFilter" class="def">TreeModelFilter</a> <a href="src/Graphics-UI-Gtk-Types.html#TreeModelFilter" class="link">Source</a></p><div class="subs instances"><p id="control.i:TreeModelFilter" class="caption collapser" onclick="toggleSection('i:TreeModelFilter')">Instances</p><div id="section.i:TreeModelFilter" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a name="t:TreeModelFilterClass" class="def">TreeModelFilterClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#TreeModelFilterClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:TreeModelFilterClass" class="caption collapser" onclick="toggleSection('i:TreeModelFilterClass')">Instances</p><div id="section.i:TreeModelFilterClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> (TypedTreeModelFilter a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToTreeModelFilter" class="def">castToTreeModelFilter</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a><a href="src/Graphics-UI-Gtk-Types.html#castToTreeModelFilter" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeTreeModelFilter" class="def">gTypeTreeModelFilter</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeTreeModelFilter" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toTreeModelFilter" class="def">toTreeModelFilter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> o => o -> <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a><a href="src/Graphics-UI-Gtk-Types.html#toTreeModelFilter" class="link">Source</a></p></div><h1 id="g:4">Constructors </h1><div class="top"><p class="src"><a name="v:treeModelFilterNew" class="def">treeModelFilterNew</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterNew" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModelClass">TreeModelClass</a> (childModel row), <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TypedTreeModelClass">TypedTreeModelClass</a> childModel)</td><td class="doc empty"> </td></tr><tr><td class="src">=> childModel row</td><td class="doc"><p><code>childModel</code> - A <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></code>. </p></td></tr><tr><td class="src">-> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></td><td class="doc"><p><code>root</code> - A <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></code> or <code>[]</code>. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (TypedTreeModelFilter row)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></code>, with <code>childModel</code> as the child model and <code>root</code> as the virtual root. </p></div></div><h1 id="g:5">Methods </h1><div class="top"><p class="src"><a name="v:treeModelFilterSetVisibleFunc" class="def">treeModelFilterSetVisibleFunc</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterSetVisibleFunc" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>)</td><td class="doc"><p><code>func</code> - The visible function </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sets the visible function used when filtering the rows to be <code>func</code>. The function should return <code>True</code> if the given row should be visible and <code>False</code> otherwise. The passed-in iterator is an iterator of the child model, not of the <code><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></code> model that is passed in as the first argument to this function. </p><p>If the condition calculated by the function changes over time (e.g. because it depends on some global parameters), you must call <code><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#v:treeModelFilterRefilter">treeModelFilterRefilter</a></code> to keep the visibility information of the model up to date. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterSetVisibleColumn" class="def">treeModelFilterSetVisibleColumn</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterSetVisibleColumn" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> (self row), <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TypedTreeModelClass">TypedTreeModelClass</a> self)</td><td class="doc empty"> </td></tr><tr><td class="src">=> self row</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:ColumnId">ColumnId</a> row <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>column</code> - A column of Booleans that determines if a row is visible </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sets <code>column</code> of the child model to be the column where the filter model should look for visibility information. A row containing <code>True</code> means that this row should be shown. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterGetModel" class="def">treeModelFilterGetModel</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterGetModel" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a>)</td><td class="doc"><p>returns a <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></code>. </p></td></tr></table></div><div class="doc"><p>Returns a pointer to the child model of <code>filter</code>. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterConvertChildIterToIter" class="def">treeModelFilterConvertChildIterToIter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterConvertChildIterToIter" class="link">Source</a></p><div class="doc"><p>Return an iterator in the sorted model that points to the row pointed to by the given iter from the unfiltered model. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterConvertIterToChildIter" class="def">treeModelFilterConvertIterToChildIter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterConvertIterToChildIter" class="link">Source</a></p><div class="doc"><p>Return an iterator in the unfiltered model that points to the row pointed to by the given iter from the filtered model. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterConvertChildPathToPath" class="def">treeModelFilterConvertChildPathToPath</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterConvertChildPathToPath" class="link">Source</a></p><div class="doc"><p>Converts the given path to a path relative to the given filtered model. </p><ul><li> The given path points to a row in the child model. The returned path will point to the same row in the filtered model. </li></ul></div></div><div class="top"><p class="src"><a name="v:treeModelFilterConvertPathToChildPath" class="def">treeModelFilterConvertPathToChildPath</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterConvertPathToChildPath" class="link">Source</a></p><div class="doc"><p>Converts path in the filtered model to a path on the unfiltered model on which the given <code><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></code> is based. That is, the given path points to a location in the given <code><a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilter">TreeModelFilter</a></code>. The returned path will point to the same location in the underlying unfiltered model. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterRefilter" class="def">treeModelFilterRefilter</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterRefilter" class="link">Source</a></p><div class="doc"><p>Emits <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#v:rowChanged">rowChanged</a></code> for each row in the child model, which causes the filter to re-evaluate whether a row is visible or not. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterClearCache" class="def">treeModelFilterClearCache</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterClearCache" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc"><p><code>filter</code> - the filter model </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>This function should almost never be called. It clears the <code>filter</code> of any cached iterators that haven't been reffed with <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#v:treeModelRefNode">treeModelRefNode</a></code>. This might be useful if the child model being filtered is static (and doesn't change often) and there has been a lot of unreffed access to nodes. As a side effect of this function, all unreffed iters will be invalid. </p></div></div><h1 id="g:6">Attributes </h1><div class="top"><p class="src"><a name="v:treeModelFilterChildModel" class="def">treeModelFilterChildModel</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterChildModel" class="link">Source</a></p><div class="doc"><p>The model for the filtermodel to filter. </p></div></div><div class="top"><p class="src"><a name="v:treeModelFilterVirtualRoot" class="def">treeModelFilterVirtualRoot</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeModelFilter.html#t:TreeModelFilterClass">TreeModelFilterClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a><a href="src/Graphics-UI-Gtk-ModelView-TreeModelFilter.html#treeModelFilterVirtualRoot" class="link">Source</a></p><div class="doc"><p>The virtual root (relative to the child model) for this filtermodel. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>