<!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.TreeSortable</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-TreeSortable.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.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.TreeSortable</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail </a></li><li><a href="#g:2">Class Hierarchy </a></li><li><a href="#g:3">Types </a></li><li><a href="#g:4">Constants </a></li><li><a href="#g:5">Methods </a></li><li><a href="#g:6">Signals </a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The interface for sortable models used by <code><a href="Graphics-UI-Gtk-ModelView-TreeView.html#t:TreeView">TreeView</a></code> </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:TreeSortable">TreeSortable</a> </li><li class="src short"><span class="keyword">class</span> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a href="#t:TreeSortableClass">TreeSortableClass</a> o </li><li class="src short"><a href="#v:castToTreeSortable">castToTreeSortable</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></li><li class="src short"><a href="#v:gTypeTreeSortable">gTypeTreeSortable</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toTreeSortable">toTreeSortable</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> o => o -> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:SortColumnId">SortColumnId</a> = <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:treeSortableDefaultSortColumnId">treeSortableDefaultSortColumnId</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></li><li class="src short"><a href="#v:treeSortableGetSortColumnId">treeSortableGetSortColumnId</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-UI-Gtk-General-Enums.html#t:SortType">SortType</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a>)</li><li class="src short"><a href="#v:treeSortableSetSortColumnId">treeSortableSetSortColumnId</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a> -> <a href="Graphics-UI-Gtk-General-Enums.html#t:SortType">SortType</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:treeSortableSetSortFunc">treeSortableSetSortFunc</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => self -> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a> -> (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ordering">Ordering</a>) -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:treeSortableSetDefaultSortFunc">treeSortableSetDefaultSortFunc</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ordering">Ordering</a>) -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:treeSortableHasDefaultSortFunc">treeSortableHasDefaultSortFunc</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:treeSortableSortColumnChanged">treeSortableSortColumnChanged</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:sortColumnChanged">sortColumnChanged</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:Signal">Signal</a> self (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a>)</li></ul></div><div id="interface"><h1 id="g:1">Detail </h1><div class="doc"><p><code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></code> is an interface to be implemented by tree models which support sorting. The <code><a href="Graphics-UI-Gtk-ModelView-TreeView.html#t:TreeView">TreeView</a></code> uses the methods provided by this interface to sort the model. As of now, only the <code>Graphics.UI.Gtk.ModelView.TreeModelSort.TreeModelSort</code> proxy supports the sortable interface. Thus, in order to enable sortable columns in a <code><a href="Graphics-UI-Gtk-ModelView-TreeView.html#t:TreeView">TreeView</a></code>, it is necessary to wrap a <code>Graphics.UI.Gtk.ModelView.ListStore.ListStore</code> or <code>Graphics.UI.Gtk.ModelView.TreeStore.TreeStore</code> model in a <code>Graphics.UI.Gtk.ModelView.TreeModelSort.TreeModelSort</code>. </p><p>A <code>Graphics.UI.Gtk.ModelView.TreeViewColumn</code> can be sorted by the user though clicking into the column's header. The rows in the view will then be sorted by the sorting function set for that column. Specifically, a set of sorting functions must be set using the interface provided in this module. Each sorting function is associated with a <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></code>, which is some positive number. A tree view column is then associated with the sorting function by passing the <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></code> to <code>Graphics.UI.Gtk.ModelView.TreeViewColumn.treeViewColumnSetSortColumnId</code>. There exists one special <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></code>, namely <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#v:treeSortableDefaultSortColumnId">treeSortableDefaultSortColumnId</a></code> for which a default sorting function can be set. If no such function is set, the order of the rows is the order in which they are stored in the model. </p></div><h1 id="g:2">Class Hierarchy </h1><div class="doc"><pre> | <code>GInterface</code> | +----TreeSortable </pre></div><h1 id="g:3">Types </h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TreeSortable" class="def">TreeSortable</a> <a href="src/Graphics-UI-Gtk-Types.html#TreeSortable" class="link">Source</a></p><div class="subs instances"><p id="control.i:TreeSortable" class="caption collapser" onclick="toggleSection('i:TreeSortable')">Instances</p><div id="section.i:TreeSortable" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> o => <a name="t:TreeSortableClass" class="def">TreeSortableClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#TreeSortableClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:TreeSortableClass" class="caption collapser" onclick="toggleSection('i:TreeSortableClass')">Instances</p><div id="section.i:TreeSortableClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeModelSort.html#t:TreeModelSort">TreeModelSort</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> (<a href="Graphics-UI-Gtk-ModelView-TreeModelSort.html#t:TypedTreeModelSort">TypedTreeModelSort</a> row)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToTreeSortable" class="def">castToTreeSortable</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj => obj -> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a><a href="src/Graphics-UI-Gtk-Types.html#castToTreeSortable" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeTreeSortable" class="def">gTypeTreeSortable</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeTreeSortable" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toTreeSortable" class="def">toTreeSortable</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> o => o -> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortable">TreeSortable</a><a href="src/Graphics-UI-Gtk-Types.html#toTreeSortable" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:SortColumnId" class="def">SortColumnId</a> = <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-General-Structs.html#SortColumnId" class="link">Source</a></p><div class="doc"><p>ID number of a sort column. </p><ul><li> A <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></code> is a logical number to which a sorting function can be associated. The number does not have to coincide with any column number. </li></ul></div></div><h1 id="g:4">Constants </h1><div class="top"><p class="src"><a name="v:treeSortableDefaultSortColumnId" class="def">treeSortableDefaultSortColumnId</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a><a href="src/Graphics-UI-Gtk-General-Structs.html#treeSortableDefaultSortColumnId" class="link">Source</a></p><div class="doc"><p>A special <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></code> to indicated that the default sorting function is used. </p></div></div><h1 id="g:5">Methods </h1><div class="top"><p class="src"><a name="v:treeSortableGetSortColumnId" class="def">treeSortableGetSortColumnId</a><a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.html#treeSortableGetSortColumnId" 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-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-UI-Gtk-General-Enums.html#t:SortType">SortType</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a>, <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a>)</td><td class="doc"><p><code>(type, columnSet, sortColumnId)</code> returns <code>True</code> in <code>columnSet</code> if <code>sortColumnId</code> is not <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#v:treeSortableDefaultSortColumnId">treeSortableDefaultSortColumnId</a></code>. The <code>type</code> value indicates increasing or decreasing ordering. </p></td></tr></table></div><div class="doc"><p>Query the sort column id that is currently in use. The return value may be the special constant <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#v:treeSortableDefaultSortColumnId">treeSortableDefaultSortColumnId</a></code> in which case the returned Boolean flag is <code>False</code>. </p></div></div><div class="top"><p class="src"><a name="v:treeSortableSetSortColumnId" class="def">treeSortableSetSortColumnId</a><a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.html#treeSortableSetSortColumnId" 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-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></td><td class="doc"><p><code>sortColumnId</code> - the sort column id to set </p></td></tr><tr><td class="src">-> <a href="Graphics-UI-Gtk-General-Enums.html#t:SortType">SortType</a></td><td class="doc"><p><code>order</code> - The sort order of the column </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sets the current sort column to be <code>sortColumnId</code>. The <code>sortable</code> will resort itself to reflect this change, after emitting a <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#v:sortColumnChanged">sortColumnChanged</a></code> signal. If <code>sortColumnId</code> is <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#v:treeSortableDefaultSortColumnId">treeSortableDefaultSortColumnId</a></code>, then the default sort function will be used, if it is set. Note that this function is mainly used by the view and that the user program should simply set the <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></code> of the <code><a href="Graphics-UI-Gtk-ModelView-TreeViewColumn.html#t:TreeViewColumn">TreeViewColumn</a></code>s. </p></div></div><div class="top"><p class="src"><a name="v:treeSortableSetSortFunc" class="def">treeSortableSetSortFunc</a><a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.html#treeSortableSetSortFunc" 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-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:SortColumnId">SortColumnId</a></td><td class="doc"><p><code>sortColumnId</code> - the sort column id to set the function for </p></td></tr><tr><td class="src">-> (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ordering">Ordering</a>)</td><td class="doc"><p><code>sortFunc</code> - The comparison function </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sets the comparison function used when sorting to be <code>sortFunc</code>. If the current sort column id of <code>self</code> is the same as <code>sortColumnId</code>, then the model will sort using this function. </p></div></div><div class="top"><p class="src"><a name="v:treeSortableSetDefaultSortFunc" class="def">treeSortableSetDefaultSortFunc</a><a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.html#treeSortableSetDefaultSortFunc" 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-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeIter">TreeIter</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ordering">Ordering</a>)</td><td class="doc"><p><code>sortFunc</code> - The comparison function or <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code> to use default comparison function. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Sets the default comparison function used when sorting to be <code>sortFunc</code>. If the current sort column id of <code>self</code> is <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#v:treeSortableDefaultSortColumnId">treeSortableDefaultSortColumnId</a></code> then the model will sort using this function. </p><p>| If <code>sortFunc</code> is <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#v:Nothing">Nothing</a></code>, then there will be no default comparison function. This means that once the model has been sorted, it can't go back to the default state. In this case, when the current sort column id of sortable is <code>TreeSortableDefaultSortColumnId</code>, the model will be unsorted. </p></div></div><div class="top"><p class="src"><a name="v:treeSortableHasDefaultSortFunc" class="def">treeSortableHasDefaultSortFunc</a><a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.html#treeSortableHasDefaultSortFunc" 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-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code>, if the model has a default sort function </p></td></tr></table></div><div class="doc"><p>Returns <code>True</code> if the model has a default sort function. This is used primarily by <code>Graphics.UI.Gtk.ModelView.TreeViewColumn</code>s in order to determine if a model has a default ordering or if the entries are retrieved in the sequence in which they are stored in the model. </p></div></div><div class="top"><p class="src"><a name="v:treeSortableSortColumnChanged" class="def">treeSortableSortColumnChanged</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.html#treeSortableSortColumnChanged" class="link">Source</a></p><div class="doc"><p>Emits a <code><a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#v:sortColumnChanged">sortColumnChanged</a></code> signal on the model. </p></div></div><h1 id="g:6">Signals </h1><div class="top"><p class="src"><a name="v:sortColumnChanged" class="def">sortColumnChanged</a> :: <a href="Graphics-UI-Gtk-ModelView-TreeSortable.html#t:TreeSortableClass">TreeSortableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Signals.html#t:Signal">Signal</a> self (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a>)<a href="src/Graphics-UI-Gtk-ModelView-TreeSortable.html#sortColumnChanged" class="link">Source</a></p></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>