<!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.TreeSelection</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-TreeSelection.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-TreeSelection.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.TreeSelection</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" >Detail </A ></DT ><DT ><A HREF="#2" >Class Hierarchy </A ></DT ><DT ><A HREF="#3" >Types </A ></DT ><DT ><A HREF="#4" >Methods </A ></DT ><DT ><A HREF="#5" >Attributes </A ></DT ><DT ><A HREF="#6" >Signals </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" >The selection object for <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView" >TreeView</A ></TT > </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%3ATreeSelection" >TreeSelection</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > o => <A HREF="#t%3ATreeSelectionClass" >TreeSelectionClass</A > o </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AcastToTreeSelection" >castToTreeSelection</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > obj => obj -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AgTypeTreeSelection" >gTypeTreeSelection</A > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType" >GType</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtoTreeSelection" >toTreeSelection</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > o => o -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3ASelectionMode" >SelectionMode</A > </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" >= <A HREF="#v%3ASelectionNone" >SelectionNone</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3ASelectionSingle" >SelectionSingle</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3ASelectionBrowse" >SelectionBrowse</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3ASelectionMultiple" >SelectionMultiple</A ></TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A HREF="#t%3ATreeSelectionCB" >TreeSelectionCB</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" ><SPAN CLASS="keyword" >type</SPAN > <A HREF="#t%3ATreeSelectionForeachCB" >TreeSelectionForeachCB</A > = <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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%3AtreeSelectionSetMode" >treeSelectionSetMode</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ASelectionMode" >SelectionMode</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%3AtreeSelectionGetMode" >treeSelectionGetMode</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeSelection.html#t%3ASelectionMode" >SelectionMode</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeSelectionSetSelectFunction" >treeSelectionSetSelectFunction</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionCB" >TreeSelectionCB</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%3AtreeSelectionGetTreeView" >treeSelectionGetTreeView</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeView.html#t%3ATreeView" >TreeView</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeSelectionGetSelected" >treeSelectionGetSelected</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeSelectionSelectedForeach" >treeSelectionSelectedForeach</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionForeachCB" >TreeSelectionForeachCB</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%3AtreeSelectionGetSelectedRows" >treeSelectionGetSelectedRows</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeModel.html#t%3ATreePath" >TreePath</A >]</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeSelectionCountSelectedRows" >treeSelectionCountSelectedRows</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-Int.html#t%3AInt" >Int</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtreeSelectionSelectPath" >treeSelectionSelectPath</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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/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%3AtreeSelectionUnselectPath" >treeSelectionUnselectPath</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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/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%3AtreeSelectionPathIsSelected" >treeSelectionPathIsSelected</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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%3AtreeSelectionSelectIter" >treeSelectionSelectIter</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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%3AtreeSelectionUnselectIter" >treeSelectionUnselectIter</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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%3AtreeSelectionIterIsSelected" >treeSelectionIterIsSelected</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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%3AtreeSelectionSelectAll" >treeSelectionSelectAll</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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%3AtreeSelectionUnselectAll" >treeSelectionUnselectAll</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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%3AtreeSelectionSelectRange" >treeSelectionSelectRange</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</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/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%3AtreeSelectionUnselectRange" >treeSelectionUnselectRange</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</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/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%3AtreeSelectionMode" >treeSelectionMode</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ASelectionMode" >SelectionMode</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AonSelectionChanged" >onSelectionChanged</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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 > -> <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/glib-0.11.2/System-Glib-Signals.html#t%3AConnectId" >ConnectId</A > self)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AafterSelectionChanged" >afterSelectionChanged</A > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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 > -> <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/glib-0.11.2/System-Glib-Signals.html#t%3AConnectId" >ConnectId</A > self)</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" >Detail </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="doc" ><P >The <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TT > object is a helper object to manage the selection for a <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView" >TreeView</A ></TT > widget. The <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TT > object is automatically created when a new <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView" >TreeView</A ></TT > widget is created, and cannot exist independentally of this widget. The primary reason the <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TT > objects exists is for cleanliness of code and API. That is, there is no conceptual reason all these functions could not be methods on the <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView" >TreeView</A ></TT > widget instead of a separate function. </P ><P >The <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TT > object is gotten from a <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView" >TreeView</A ></TT > by calling treeViewGetSelection. It can be manipulated to check the selection status of the tree, as well as select and deselect individual rows. Selection is done completely on the <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView" >TreeView</A ></TT > side. As a result, multiple views of the same model can have completely different selections. Additionally, you cannot change the selection of a row on the model that is not currently displayed by the view without expanding its parents first. </P ><P >One of the important things to remember when monitoring the selection of a view is that the "changed" signal is mostly a hint. That is, it may only emit one signal when a range of rows is selected. Additionally, it may on occasion emit a "changed" signal when nothing has happened (mostly as a result of programmers calling select_row on an already selected row). </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="2" ><A NAME="2" >Class Hierarchy </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="doc" ><PRE > | <TT ><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObject" >GObject</A ></TT > | +----TreeSelection </PRE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="3" ><A NAME="3" >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:TreeSelection" ><A NAME="t%3ATreeSelection" ></A ></A ><B >TreeSelection</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#TreeSelection" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:TreeSelection')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:TreeSelection" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Eq.html#t%3AEq" >Eq</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Ord.html#t%3AOrd" >Ord</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</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-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > o => <A NAME="t:TreeSelectionClass" ><A NAME="t%3ATreeSelectionClass" ></A ></A ><B >TreeSelectionClass</B > o </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#TreeSelectionClass" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:TreeSelectionClass')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:TreeSelectionClass" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ></TR ></TABLE ></DIV ></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:castToTreeSelection" ><A NAME="v%3AcastToTreeSelection" ></A ></A ><B >castToTreeSelection</B > :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > obj => obj -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#castToTreeSelection" >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:gTypeTreeSelection" ><A NAME="v%3AgTypeTreeSelection" ></A ></A ><B >gTypeTreeSelection</B > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType" >GType</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#gTypeTreeSelection" >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:toTreeSelection" ><A NAME="v%3AtoTreeSelection" ></A ></A ><B >toTreeSelection</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > o => o -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#toTreeSelection" >Source</A ></TD ></TR ></TABLE ></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:SelectionMode" ><A NAME="t%3ASelectionMode" ></A ></A ><B >SelectionMode</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Enums.html#SelectionMode" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="ndoc" ><P >Mode in which selections can be performed </P ><UL ><LI > There is a deprecated entry SelectionExtended which should have the same value as SelectionMultiple. C2HS chokes on that construct. </LI ></UL ></TD ></TR ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:SelectionNone" ><A NAME="v%3ASelectionNone" ></A ></A ><B >SelectionNone</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:SelectionSingle" ><A NAME="v%3ASelectionSingle" ></A ></A ><B >SelectionSingle</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:SelectionBrowse" ><A NAME="v%3ASelectionBrowse" ></A ></A ><B >SelectionBrowse</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:SelectionMultiple" ><A NAME="v%3ASelectionMultiple" ></A ></A ><B >SelectionMultiple</B ></TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:SelectionMode')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:SelectionMode" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AEnum" >Enum</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ASelectionMode" >SelectionMode</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Eq.html#t%3AEq" >Eq</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ASelectionMode" >SelectionMode</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Text-Show.html#t%3AShow" >Show</A > <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ASelectionMode" >SelectionMode</A ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TreeSelectionCB" ><A NAME="t%3ATreeSelectionCB" ></A ></A ><B >TreeSelectionCB</B > = <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-TreeSelection.html#TreeSelectionCB" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Callback type for a function that is called everytime the selection changes. This function is set with <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#v%3AtreeSelectionSetSelectFunction" >treeSelectionSetSelectFunction</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:TreeSelectionForeachCB" ><A NAME="t%3ATreeSelectionForeachCB" ></A ></A ><B >TreeSelectionForeachCB</B > = <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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-TreeSelection.html#TreeSelectionForeachCB" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Callback function type for <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#v%3AtreeSelectionSelectedForeach" >treeSelectionSelectedForeach</A ></TT >. </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:treeSelectionSetMode" ><A NAME="v%3AtreeSelectionSetMode" ></A ></A ><B >treeSelectionSetMode</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ASelectionMode" >SelectionMode</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-TreeSelection.html#treeSelectionSetMode" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Set single or multiple choice. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionGetMode" ><A NAME="v%3AtreeSelectionGetMode" ></A ></A ><B >treeSelectionGetMode</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeSelection.html#t%3ASelectionMode" >SelectionMode</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionGetMode" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Gets the selection mode. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionSetSelectFunction" ><A NAME="v%3AtreeSelectionSetSelectFunction" ></A ></A ><B >treeSelectionSetSelectFunction</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionCB" >TreeSelectionCB</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-TreeSelection.html#treeSelectionSetSelectFunction" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Set a callback function if selection changes. </P ><UL ><LI > If set, this function is called before any node is selected or unselected, giving some control over which nodes are selected. The select function should return <TT >True</TT > if the state of the node may be toggled, and <TT >False</TT > if the state of the node should be left unchanged. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionGetTreeView" ><A NAME="v%3AtreeSelectionGetTreeView" ></A ></A ><B >treeSelectionGetTreeView</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeView.html#t%3ATreeView" >TreeView</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionGetTreeView" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Retrieve the <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeView.html#t%3ATreeView" >TreeView</A ></TT > widget that this <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TT > works on. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionGetSelected" ><A NAME="v%3AtreeSelectionGetSelected" ></A ></A ><B >treeSelectionGetSelected</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionGetSelected" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Retrieves the selection of a single choice <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelection" >TreeSelection</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionSelectedForeach" ><A NAME="v%3AtreeSelectionSelectedForeach" ></A ></A ><B >treeSelectionSelectedForeach</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionForeachCB" >TreeSelectionForeachCB</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-TreeSelection.html#treeSelectionSelectedForeach" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Execute a function for each selected node. </P ><UL ><LI > Note that you cannot modify the tree or selection from within this function. Hence, <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#v%3AtreeSelectionGetSelectedRows" >treeSelectionGetSelectedRows</A ></TT > might be more useful. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionGetSelectedRows" ><A NAME="v%3AtreeSelectionGetSelectedRows" ></A ></A ><B >treeSelectionGetSelectedRows</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionGetSelectedRows" >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-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></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-TreeModel.html#t%3ATreePath" >TreePath</A >]</TD ><TD CLASS="rdoc" >returns a list containing a <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TT > for each selected row. </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Creates a list of paths of all selected rows. </P ><UL ><LI > Additionally, if you are planning on modifying the model after calling this function, you may want to convert the returned list into a list of TreeRowReferences. To do this, you can use treeRowReferenceNew. </LI ><LI > Available since Gtk+ version 2.2 </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:treeSelectionCountSelectedRows" ><A NAME="v%3AtreeSelectionCountSelectedRows" ></A ></A ><B >treeSelectionCountSelectedRows</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionCountSelectedRows" >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-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></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/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="rdoc" >returns The number of rows selected. </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Returns the number of rows that are selected. </P ><UL ><LI > Available since Gtk+ version 2.2 </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:treeSelectionSelectPath" ><A NAME="v%3AtreeSelectionSelectPath" ></A ></A ><B >treeSelectionSelectPath</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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/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-TreeSelection.html#treeSelectionSelectPath" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Select a specific item by <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionUnselectPath" ><A NAME="v%3AtreeSelectionUnselectPath" ></A ></A ><B >treeSelectionUnselectPath</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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/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-TreeSelection.html#treeSelectionUnselectPath" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Deselect a specific item by <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionPathIsSelected" ><A NAME="v%3AtreeSelectionPathIsSelected" ></A ></A ><B >treeSelectionPathIsSelected</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeSelection.html#treeSelectionPathIsSelected" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Returns True if the row at the given path is currently selected. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionSelectIter" ><A NAME="v%3AtreeSelectionSelectIter" ></A ></A ><B >treeSelectionSelectIter</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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-TreeSelection.html#treeSelectionSelectIter" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Select a specific item by <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionUnselectIter" ><A NAME="v%3AtreeSelectionUnselectIter" ></A ></A ><B >treeSelectionUnselectIter</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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-TreeSelection.html#treeSelectionUnselectIter" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Deselect a specific item by <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionIterIsSelected" ><A NAME="v%3AtreeSelectionIterIsSelected" ></A ></A ><B >treeSelectionIterIsSelected</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreeIter" >TreeIter</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-TreeSelection.html#treeSelectionIterIsSelected" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Returns True if the row at the given iter is currently selected. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionSelectAll" ><A NAME="v%3AtreeSelectionSelectAll" ></A ></A ><B >treeSelectionSelectAll</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeSelection.html#treeSelectionSelectAll" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Selects all the nodes. The tree selection must be set to <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#v%3ASelectionMultiple" >SelectionMultiple</A ></TT > mode. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionUnselectAll" ><A NAME="v%3AtreeSelectionUnselectAll" ></A ></A ><B >treeSelectionUnselectAll</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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-TreeSelection.html#treeSelectionUnselectAll" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Unselects all the nodes. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionSelectRange" ><A NAME="v%3AtreeSelectionSelectRange" ></A ></A ><B >treeSelectionSelectRange</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionSelectRange" >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-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TD ><TD CLASS="rdoc" ><TT >startPath</TT > - The initial node of the range. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TD ><TD CLASS="rdoc" ><TT >endPath</TT > - The final node of the range. </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" >Selects a range of nodes, determined by <TT >startPath</TT > and <TT >endPath</TT > inclusive. <TT >selection</TT > must be set to <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#v%3ASelectionMultiple" >SelectionMultiple</A ></TT > mode. </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:treeSelectionUnselectRange" ><A NAME="v%3AtreeSelectionUnselectRange" ></A ></A ><B >treeSelectionUnselectRange</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionUnselectRange" >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-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TD ><TD CLASS="rdoc" ><TT >startPath</TT > - The initial node of the range. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="Graphics-UI-Gtk-ModelView-TreeModel.html#t%3ATreePath" >TreePath</A ></TD ><TD CLASS="rdoc" ><TT >endPath</TT > - The initial node of the range. </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 >Unselects a range of nodes, determined by <TT >startPath</TT > and <TT >endPath</TT > inclusive. </P ><UL ><LI > Available since Gtk+ version 2.2 </LI ></UL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="5" ><A NAME="5" >Attributes </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:treeSelectionMode" ><A NAME="v%3AtreeSelectionMode" ></A ></A ><B >treeSelectionMode</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ASelectionMode" >SelectionMode</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#treeSelectionMode" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >'mode' property. See <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#v%3AtreeSelectionGetMode" >treeSelectionGetMode</A ></TT > and <TT ><A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#v%3AtreeSelectionSetMode" >treeSelectionSetMode</A ></TT > </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="6" ><A NAME="6" >Signals </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:onSelectionChanged" ><A NAME="v%3AonSelectionChanged" ></A ></A ><B >onSelectionChanged</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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 > -> <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/glib-0.11.2/System-Glib-Signals.html#t%3AConnectId" >ConnectId</A > self)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#onSelectionChanged" >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:afterSelectionChanged" ><A NAME="v%3AafterSelectionChanged" ></A ></A ><B >afterSelectionChanged</B > :: <A HREF="Graphics-UI-Gtk-ModelView-TreeSelection.html#t%3ATreeSelectionClass" >TreeSelectionClass</A > self => self -> <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 > -> <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/glib-0.11.2/System-Glib-Signals.html#t%3AConnectId" >ConnectId</A > self)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-ModelView-TreeSelection.html#afterSelectionChanged" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Emitted whenever the selection has (possibly) changed. Please note that this signal is mostly a hint. It may only be emitted once when a range of rows are selected, and it may occasionally be emitted when nothing has happened. </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 >