<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Graphics.UI.Gtk.ModelView.TreeStore</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ><SCRIPT TYPE="text/javascript" >window.onload = function () {setSynopsis("mini_Graphics-UI-Gtk-ModelView-TreeStore.html")};</SCRIPT ></HEAD ><BODY ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="topbar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" " ></TD ><TD CLASS="title" >gtk-0.11.2: Binding to the Gtk+ graphical user interface library.</TD ><TD CLASS="topbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html" >Source code</A ></TD ><TD CLASS="topbut" ><A HREF="index.html" >Contents</A ></TD ><TD CLASS="topbut" ><A HREF="doc-index.html" >Index</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="modulebar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><FONT SIZE="6" >Graphics.UI.Gtk.ModelView.TreeStore</FONT ></TD ><TD ALIGN="right" ><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="infohead" >Portability</TD ><TD CLASS="infoval" >portable (depends on GHC)</TD ></TR ><TR ><TD CLASS="infohead" >Stability</TD ><TD CLASS="infoval" >provisional</TD ></TR ><TR ><TD CLASS="infohead" >Maintainer</TD ><TD CLASS="infoval" >gtk2hs-users@lists.sourceforge.net</TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" ><B >Contents</B ></TD ></TR ><TR ><TD ><DL ><DT ><A HREF="#1" >Types </A ></DT ><DT ><A HREF="#2" >Constructors </A ></DT ><DT ><A HREF="#3" >Implementation of Interfaces </A ></DT ><DT ><A HREF="#4" >Methods </A ></DT ></DL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Description</TD ></TR ><TR ><TD CLASS="doc" >Standard model to store hierarchical data. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Synopsis</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3ATreeStore" >TreeStore</A > a</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreNew" >treeStoreNew</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3AForest" >Forest</A > a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreNewDND" >treeStoreNewDND</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3AForest" >Forest</A > a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > (<A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragSourceIface" >DragSourceIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a) -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > (<A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragDestIface" >DragDestIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a) -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreDefaultDragSourceIface" >treeStoreDefaultDragSourceIface</A > :: <A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragSourceIface" >DragSourceIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > row</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreDefaultDragDestIface" >treeStoreDefaultDragDestIface</A > :: <A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragDestIface" >DragDestIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > row</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreGetValue" >treeStoreGetValue</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > a</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreGetTree" >treeStoreGetTree</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3ATree" >Tree</A > a)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreLookup" >treeStoreLookup</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > (<A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3ATree" >Tree</A > a))</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreSetValue" >treeStoreSetValue</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreInsert" >treeStoreInsert</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreInsertTree" >treeStoreInsertTree</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3ATree" >Tree</A > a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreInsertForest" >treeStoreInsertForest</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3AForest" >Forest</A > a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreRemove" >treeStoreRemove</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreClear" >treeStoreClear</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreChange" >treeStoreChange</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> (a -> a) -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeStoreChangeM" >treeStoreChangeM</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> (a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > a) -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="1" ><A NAME="1" >Types </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:TreeStore" ><A NAME="t%3ATreeStore" ></A ></A ><B >TreeStore</B > a </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#TreeStore" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="ndoc" >A store for hierarchical data. </TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:TreeStore')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:TreeStore" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATypedTreeModelClass" >TypedTreeModelClass</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > (<A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeModelClass" >TreeModelClass</A > (<A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="2" ><A NAME="2" >Constructors </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreNew" ><A NAME="v%3AtreeStoreNew" ></A ></A ><B >treeStoreNew</B > :: <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3AForest" >Forest</A > a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreNew" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD 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 <TT ><A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3ATree" >Tree</A ></TT > in the forest corresponds to one top-level node. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreNewDND" ><A NAME="v%3AtreeStoreNewDND" ></A ></A ><B >treeStoreNewDND</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreNewDND" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3AForest" >Forest</A > a</TD ><TD CLASS="rdoc" >the inital tree stored in this model </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > (<A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragSourceIface" >DragSourceIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ><TD CLASS="rdoc" >an optional interface for drags </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > (<A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragDestIface" >DragDestIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ><TD CLASS="rdoc" >an optional interface to handle drops </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a)</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Create a new list store. </P ><UL ><LI > In addition to <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#v%3AtreeStoreNew" >treeStoreNew</A ></TT >, this function takes an two interfaces to implement user-defined drag-and-drop functionality. </LI ></UL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="3" ><A NAME="3" >Implementation of Interfaces </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreDefaultDragSourceIface" ><A NAME="v%3AtreeStoreDefaultDragSourceIface" ></A ></A ><B >treeStoreDefaultDragSourceIface</B > :: <A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragSourceIface" >DragSourceIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > row</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreDefaultDragSourceIface" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Default drag functions for Graphics.UI.Gtk.ModelView.TreeStore. 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 SelectionDataM object is set with <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeDrag.html#v%3AtreeSetRowDragData" >treeSetRowDragData</A ></TT >, i.e. it contains the model and the <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TT > to the row. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreDefaultDragDestIface" ><A NAME="v%3AtreeStoreDefaultDragDestIface" ></A ></A ><B >treeStoreDefaultDragDestIface</B > :: <A HREF="Graphics-UI-Gtk-ModelView-CustomStore.html#t%3ADragDestIface" >DragDestIface</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > row</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreDefaultDragDestIface" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Default drop functions for Graphics.UI.Gtk.ModelView.TreeStore. 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. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="4" ><A NAME="4" >Methods </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreGetValue" ><A NAME="v%3AtreeStoreGetValue" ></A ></A ><B >treeStoreGetValue</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > a</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreGetValue" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Extract one node from the current model. Fails if the given <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TT > refers to a non-existent node. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreGetTree" ><A NAME="v%3AtreeStoreGetTree" ></A ></A ><B >treeStoreGetTree</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3ATree" >Tree</A > a)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreGetTree" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Extract a subtree from the current model. Fails if the given <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TT > refers to a non-existent node. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreLookup" ><A NAME="v%3AtreeStoreLookup" ></A ></A ><B >treeStoreLookup</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > (<A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3ATree" >Tree</A > a))</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreLookup" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Extract a subtree from the current model. Like <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#v%3AtreeStoreGetTree" >treeStoreGetTree</A ></TT > but returns <TT >Nothing</TT > if the path refers to a non-existant node. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreSetValue" ><A NAME="v%3AtreeStoreSetValue" ></A ></A ><B >treeStoreSetValue</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreSetValue" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Set a node in the store. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreInsert" ><A NAME="v%3AtreeStoreInsert" ></A ></A ><B >treeStoreInsert</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreInsert" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a</TD ><TD CLASS="rdoc" >the store </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TD ><TD CLASS="rdoc" ><TT >path</TT > - the position of the parent </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="rdoc" ><TT >pos</TT > - the index of the new tree </TD ></TR ><TR ><TD CLASS="arg" >-> a</TD ><TD CLASS="rdoc" >the value to be inserted </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><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 <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#v%3AtreeStoreInsert" >treeStoreInsert</A ></TT >. </LI ></UL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreInsertTree" ><A NAME="v%3AtreeStoreInsertTree" ></A ></A ><B >treeStoreInsertTree</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreInsertTree" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a</TD ><TD CLASS="rdoc" >the store </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TD ><TD CLASS="rdoc" ><TT >path</TT > - the position of the parent </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="rdoc" ><TT >pos</TT > - the index of the new tree </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3ATree" >Tree</A > a</TD ><TD CLASS="rdoc" >the value to be inserted </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" >Insert a node into the store. </TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreInsertForest" ><A NAME="v%3AtreeStoreInsertForest" ></A ></A ><B >treeStoreInsertForest</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreInsertForest" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a</TD ><TD CLASS="rdoc" >the store </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TD ><TD CLASS="rdoc" ><TT >path</TT > - the position of the parent </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="rdoc" ><TT >pos</TT > - the index of the new tree </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/containers-0.3.0.0/Data-Tree.html#t%3AForest" >Forest</A > a</TD ><TD CLASS="rdoc" >the list of trees to be inserted </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Insert nodes into the store. </P ><UL ><LI > The given list of nodes is inserted into given parent at <TT >pos</TT >. If the parent existed, the function returns <TT >Just path</TT > where <TT >path</TT > is the position of the newly inserted elements. If <TT >pos</TT > is negative or greater or equal to the number of children of the node at <TT >path</TT >, the new nodes are appended to the list. </LI ></UL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreRemove" ><A NAME="v%3AtreeStoreRemove" ></A ></A ><B >treeStoreRemove</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreRemove" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD 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 <TT >True</TT > if the given node was found. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreClear" ><A NAME="v%3AtreeStoreClear" ></A ></A ><B >treeStoreClear</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreClear" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreChange" ><A NAME="v%3AtreeStoreChange" ></A ></A ><B >treeStoreChange</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> (a -> a) -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreChange" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Change a node in the store. </P ><UL ><LI > Returns <TT >True</TT > if the node was found. For a monadic version, see <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#v%3AtreeStoreChangeM" >treeStoreChangeM</A ></TT >. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeStoreChangeM" ><A NAME="v%3AtreeStoreChangeM" ></A ></A ><B >treeStoreChangeM</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#t%3ATreeStore" >TreeStore</A > a -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A > -> (a -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > a) -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeStore.html#treeStoreChangeM" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Change a node in the store. </P ><UL ><LI > Returns <TT >True</TT > if the node was found. For a purely functional version, see <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeStore.html#v%3AtreeStoreChange" >treeStoreChange</A ></TT >. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http://www.haskell.org/haddock/" >Haddock</A > version 2.6.1</TD ></TR ></TABLE ></BODY ></HTML >