Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 404d46ca9bb341d7a0e7e04bc69da9df > files > 859

ghc-gtk-devel-0.12.0-4.fc15.i686.rpm

<!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.TreeStore</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-TreeStore.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-ModelView-TreeStore.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.TreeStore</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Types
</a></li><li><a href="#g:2">Constructors
</a></li><li><a href="#g:3">Implementation of Interfaces
</a></li><li><a href="#g:4">Methods
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Standard model to store hierarchical data.
</p></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:TreeStore">TreeStore</a> a</li><li class="src short"><a href="#v:treeStoreNew">treeStoreNew</a> ::  <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a -&gt; <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-TreeStore.html#t:TreeStore">TreeStore</a> a)</li><li class="src short"><a href="#v:treeStoreNewDND">treeStoreNewDND</a> ::  <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a -&gt; <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-CustomStore.html#t:DragSourceIface">DragSourceIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a) -&gt; <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-CustomStore.html#t:DragDestIface">DragDestIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a) -&gt; <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-TreeStore.html#t:TreeStore">TreeStore</a> a)</li><li class="src short"><a href="#v:treeStoreDefaultDragSourceIface">treeStoreDefaultDragSourceIface</a> ::  <a href="Graphics-UI-Gtk-ModelView-CustomStore.html#t:DragSourceIface">DragSourceIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> row</li><li class="src short"><a href="#v:treeStoreDefaultDragDestIface">treeStoreDefaultDragDestIface</a> ::  <a href="Graphics-UI-Gtk-ModelView-CustomStore.html#t:DragDestIface">DragDestIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> row</li><li class="src short"><a href="#v:treeStoreGetValue">treeStoreGetValue</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:treeStoreGetTree">treeStoreGetTree</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <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/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a)</li><li class="src short"><a href="#v:treeStoreLookup">treeStoreLookup</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <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="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a))</li><li class="src short"><a href="#v:treeStoreSetValue">treeStoreSetValue</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; a -&gt; <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:treeStoreInsert">treeStoreInsert</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; a -&gt; <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:treeStoreInsertTree">treeStoreInsertTree</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a -&gt; <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:treeStoreInsertForest">treeStoreInsertForest</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a -&gt; <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:treeStoreRemove">treeStoreRemove</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <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></li><li class="src short"><a href="#v:treeStoreClear">treeStoreClear</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <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:treeStoreChange">treeStoreChange</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; (a -&gt; a) -&gt; <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></li><li class="src short"><a href="#v:treeStoreChangeM">treeStoreChangeM</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; (a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> a) -&gt; <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></li></ul></div><div id="interface"><h1 id="g:1">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:TreeStore" class="def">TreeStore</a> a <a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#TreeStore" class="link">Source</a></p><div class="doc"><p>A store for hierarchical data.
</p></div><div class="subs instances"><p id="control.i:TreeStore" class="caption collapser" onclick="toggleSection('i:TreeStore')">Instances</p><div id="section.i:TreeStore" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TypedTreeModelClass">TypedTreeModelClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a></td><td class="doc empty">&nbsp;</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-TreeStore.html#t:TreeStore">TreeStore</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModelClass">TreeModelClass</a> (<a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:2">Constructors
</h1><div class="top"><p class="src"><a name="v:treeStoreNew" class="def">treeStoreNew</a> ::  <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a -&gt; <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-TreeStore.html#t:TreeStore">TreeStore</a> a)<a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreNew" class="link">Source</a></p><div class="doc"><p>Create a new list store.
</p><ul><li> The given rose tree determines the initial content and may be the empty
   list. Each <code><a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a></code> in the forest corresponds to one top-level node.
</li></ul></div></div><div class="top"><p class="src"><a name="v:treeStoreNewDND" class="def">treeStoreNewDND</a><a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreNewDND" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a</td><td class="doc"><p>the inital tree stored in this model
</p></td></tr><tr><td class="src">-&gt; <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-CustomStore.html#t:DragSourceIface">DragSourceIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a)</td><td class="doc"><p>an optional interface for drags
</p></td></tr><tr><td class="src">-&gt; <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-CustomStore.html#t:DragDestIface">DragDestIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a)</td><td class="doc"><p>an optional interface to handle drops
</p></td></tr><tr><td class="src">-&gt; <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-TreeStore.html#t:TreeStore">TreeStore</a> a)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Create a new list store.
</p><ul><li> In addition to <code><a href="Graphics-UI-Gtk-ModelView-TreeStore.html#v:treeStoreNew">treeStoreNew</a></code>, this function takes an two interfaces
   to implement user-defined drag-and-drop functionality.
</li></ul></div></div><h1 id="g:3">Implementation of Interfaces
</h1><div class="top"><p class="src"><a name="v:treeStoreDefaultDragSourceIface" class="def">treeStoreDefaultDragSourceIface</a> ::  <a href="Graphics-UI-Gtk-ModelView-CustomStore.html#t:DragSourceIface">DragSourceIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> row<a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreDefaultDragSourceIface" class="link">Source</a></p><div class="doc"><p>Default drag functions for
 <code>Graphics.UI.Gtk.ModelView.TreeStore</code>. These functions allow the rows of
 the model to serve as drag source. Any row is allowed to be dragged and the
 data set in the <code>SelectionDataM</code> object is set with <code><a href="Graphics-UI-Gtk-ModelView-TreeDrag.html#v:treeSetRowDragData">treeSetRowDragData</a></code>,
 i.e. it contains the model and the <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></code> to the row.
</p></div></div><div class="top"><p class="src"><a name="v:treeStoreDefaultDragDestIface" class="def">treeStoreDefaultDragDestIface</a> ::  <a href="Graphics-UI-Gtk-ModelView-CustomStore.html#t:DragDestIface">DragDestIface</a> <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> row<a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreDefaultDragDestIface" class="link">Source</a></p><div class="doc"><p>Default drop functions for <code>Graphics.UI.Gtk.ModelView.TreeStore</code>. These
   functions accept a row and insert the row into the new location if it is
   dragged into a tree view
 that uses the same model.
</p></div></div><h1 id="g:4">Methods
</h1><div class="top"><p class="src"><a name="v:treeStoreGetValue" class="def">treeStoreGetValue</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> a<a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreGetValue" class="link">Source</a></p><div class="doc"><p>Extract one node from the current model. Fails if the given
   <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></code> refers to a non-existent node.
</p></div></div><div class="top"><p class="src"><a name="v:treeStoreGetTree" class="def">treeStoreGetTree</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <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/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a)<a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreGetTree" class="link">Source</a></p><div class="doc"><p>Extract a subtree from the current model. Fails if the given
   <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></code> refers to a non-existent node.
</p></div></div><div class="top"><p class="src"><a name="v:treeStoreLookup" class="def">treeStoreLookup</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <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="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a))<a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreLookup" class="link">Source</a></p><div class="doc"><p>Extract a subtree from the current model. Like <code><a href="Graphics-UI-Gtk-ModelView-TreeStore.html#v:treeStoreGetTree">treeStoreGetTree</a></code>
   but returns <code>Nothing</code> if the path refers to a non-existant node.
</p></div></div><div class="top"><p class="src"><a name="v:treeStoreSetValue" class="def">treeStoreSetValue</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; a -&gt; <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-TreeStore.html#treeStoreSetValue" class="link">Source</a></p><div class="doc"><p>Set a node in the store.
</p></div></div><div class="top"><p class="src"><a name="v:treeStoreInsert" class="def">treeStoreInsert</a><a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreInsert" 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-TreeStore.html#t:TreeStore">TreeStore</a> a</td><td class="doc"><p>the store
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></td><td class="doc"><p><code>path</code> - the position of the parent
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>pos</code> - the index of the new tree
</p></td></tr><tr><td class="src">-&gt; a</td><td class="doc"><p>the value to be inserted
</p></td></tr><tr><td class="src">-&gt; <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">&nbsp;</td></tr></table></div><div class="doc"><p>Insert a single node into the store.
</p><ul><li> This function inserts a single node without children into the tree.
   Its arguments are similar to those of <code><a href="Graphics-UI-Gtk-ModelView-TreeStore.html#v:treeStoreInsert">treeStoreInsert</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:treeStoreInsertTree" class="def">treeStoreInsertTree</a><a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreInsertTree" 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-TreeStore.html#t:TreeStore">TreeStore</a> a</td><td class="doc"><p>the store
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></td><td class="doc"><p><code>path</code> - the position of the parent
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>pos</code> - the index of the new tree
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Tree">Tree</a> a</td><td class="doc"><p>the value to be inserted
</p></td></tr><tr><td class="src">-&gt; <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">&nbsp;</td></tr></table></div><div class="doc"><p>Insert a node into the store.
</p></div></div><div class="top"><p class="src"><a name="v:treeStoreInsertForest" class="def">treeStoreInsertForest</a><a href="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreInsertForest" 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-TreeStore.html#t:TreeStore">TreeStore</a> a</td><td class="doc"><p>the store
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></td><td class="doc"><p><code>path</code> - the position of the parent
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>pos</code> - the index of the new tree
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/containers-0.4.0.0/Data-Tree.html#t:Forest">Forest</a> a</td><td class="doc"><p>the list of trees to be inserted
</p></td></tr><tr><td class="src">-&gt; <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">&nbsp;</td></tr></table></div><div class="doc"><p>Insert nodes into the store.
</p><ul><li> The given list of nodes is inserted into given parent at <code>pos</code>.
   If the parent existed, the function returns <code>Just path</code> where <code>path</code>
   is the position of the newly inserted elements. If <code>pos</code> is negative
   or greater or equal to the number of children of the node at <code>path</code>,
   the new nodes are appended to the list.
</li></ul></div></div><div class="top"><p class="src"><a name="v:treeStoreRemove" class="def">treeStoreRemove</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <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="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreRemove" class="link">Source</a></p><div class="doc"><p>Remove a node from the store.
</p><ul><li> The node denoted by the path is removed, along with all its children.
   The function returns <code>True</code> if the given node was found.
</li></ul></div></div><div class="top"><p class="src"><a name="v:treeStoreClear" class="def">treeStoreClear</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <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-TreeStore.html#treeStoreClear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:treeStoreChange" class="def">treeStoreChange</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; (a -&gt; a) -&gt; <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="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreChange" class="link">Source</a></p><div class="doc"><p>Change a node in the store.
</p><ul><li> Returns <code>True</code> if the node was found. For a monadic version, see
   <code><a href="Graphics-UI-Gtk-ModelView-TreeStore.html#v:treeStoreChangeM">treeStoreChangeM</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:treeStoreChangeM" class="def">treeStoreChangeM</a> ::  <a href="Graphics-UI-Gtk-ModelView-TreeStore.html#t:TreeStore">TreeStore</a> a -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; (a -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> a) -&gt; <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="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreChangeM" class="link">Source</a></p><div class="doc"><p>Change a node in the store.
</p><ul><li> Returns <code>True</code> if the node was found. For a purely functional version, see
   <code><a href="Graphics-UI-Gtk-ModelView-TreeStore.html#v:treeStoreChange">treeStoreChange</a></code>.
</li></ul></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>