Sophie

Sophie

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

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Gtk.ModelView.CellView</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-CellView.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-ModelView-CellView.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.CellView</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail
</a></li><li><a href="#g:2">Class Hierarchy
</a></li><li><a href="#g:3">Types
</a></li><li><a href="#g:4">Constructors
</a></li><li><a href="#g:5">Methods
</a></li><li><a href="#g:6">Attributes
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A widget displaying a single row of a <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></code>
</p><ul><li> Module available since Gtk+ version 2.6
</li></ul></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:CellView">CellView</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> o =&gt; <a href="#t:CellViewClass">CellViewClass</a> o </li><li class="src short"><a href="#v:castToCellView">castToCellView</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></li><li class="src short"><a href="#v:gTypeCellView">gTypeCellView</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toCellView">toCellView</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></li><li class="src short"><a href="#v:cellViewNew">cellViewNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></li><li class="src short"><a href="#v:cellViewNewWithMarkup">cellViewNewWithMarkup</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></li><li class="src short"><a href="#v:cellViewNewWithPixbuf">cellViewNewWithPixbuf</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></li><li class="src short"><a href="#v:cellViewNewWithText">cellViewNewWithText</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></li><li class="src short"><a href="#v:cellViewSetModel">cellViewSetModel</a> :: (<a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> self, <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModelClass">TreeModelClass</a> model) =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> model -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:cellViewGetSizeOfRow">cellViewGetSizeOfRow</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Requisition">Requisition</a></li><li class="src short"><a href="#v:cellViewSetBackgroundColor">cellViewSetBackgroundColor</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:cellViewGetCellRenderers">cellViewGetCellRenderers</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-Gtk-ModelView-CellRenderer.html#t:CellRenderer">CellRenderer</a>]</li><li class="src short"><a href="#v:cellViewBackground">cellViewBackground</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:WriteAttr">WriteAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Detail
</h1><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></code> displays a single row of a <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></code>, using cell renderers
 just like <code><a href="Graphics-UI-Gtk-ModelView-TreeView.html#t:TreeView">TreeView</a></code>. <code><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></code> doesn't support some of the more complex
 features of <code><a href="Graphics-UI-Gtk-ModelView-TreeView.html#t:TreeView">TreeView</a></code>, like cell editing and drag and drop.
</p></div><h1 id="g:2">Class Hierarchy
</h1><div class="doc"><pre>
 | <code><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObject">GObject</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Object.html#t:Object">Object</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code>
 | +----CellView
</pre></div><h1 id="g:3">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:CellView" class="def">CellView</a>  <a href="src/Graphics-UI-Gtk-Types.html#CellView" class="link">Source</a></p><div class="subs instances"><p id="control.i:CellView" class="caption collapser" onclick="toggleSection('i:CellView')">Instances</p><div id="section.i:CellView" 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-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</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-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-CellLayout.html#t:CellLayoutClass">CellLayoutClass</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Object.html#t:ObjectClass">ObjectClass</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> o =&gt; <a name="t:CellViewClass" class="def">CellViewClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#CellViewClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:CellViewClass" class="caption collapser" onclick="toggleSection('i:CellViewClass')">Instances</p><div id="section.i:CellViewClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToCellView" class="def">castToCellView</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a><a href="src/Graphics-UI-Gtk-Types.html#castToCellView" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeCellView" class="def">gTypeCellView</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeCellView" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toCellView" class="def">toCellView</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a><a href="src/Graphics-UI-Gtk-Types.html#toCellView" class="link">Source</a></p></div><h1 id="g:4">Constructors
</h1><div class="top"><p class="src"><a name="v:cellViewNew" class="def">cellViewNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewNew" class="link">Source</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></code> widget.
</p></div></div><div class="top"><p class="src"><a name="v:cellViewNewWithMarkup" class="def">cellViewNewWithMarkup</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewNewWithMarkup" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>markup</code> - the text to display in the cell view
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></code> widget, adds a <code><a href="Graphics-UI-Gtk-ModelView-CellRendererText.html#t:CellRendererText">CellRendererText</a></code> to it, and
 makes its show <code>markup</code>. The text can be marked up with the Pango
 text markup language.
</p></div></div><div class="top"><p class="src"><a name="v:cellViewNewWithPixbuf" class="def">cellViewNewWithPixbuf</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewNewWithPixbuf" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></td><td class="doc"><p><code>pixbuf</code> - the image to display in the cell view
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></code> widget, adds a <code><a href="Graphics-UI-Gtk-ModelView-CellRendererPixbuf.html#t:CellRendererPixbuf">CellRendererPixbuf</a></code> to it, and
 makes its show <code>pixbuf</code>.
</p></div></div><div class="top"><p class="src"><a name="v:cellViewNewWithText" class="def">cellViewNewWithText</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewNewWithText" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>text</code> - the text to display in the cell view
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellView">CellView</a></code> widget, adds a <code><a href="Graphics-UI-Gtk-ModelView-CellRendererText.html#t:CellRendererText">CellRendererText</a></code> to it, and
 makes its show <code>text</code>.
</p></div></div><h1 id="g:5">Methods
</h1><div class="top"><p class="src"><a name="v:cellViewSetModel" class="def">cellViewSetModel</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewSetModel" 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-CellView.html#t:CellViewClass">CellViewClass</a> self, <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModelClass">TreeModelClass</a> model)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> model</td><td class="doc"><p><code>model</code> - a <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreeModel">TreeModel</a></code>
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the model for <code>cellView</code>. If <code>cellView</code> already has a model set, it
 will remove it before setting the new model. If <code>model</code> is <code>Nothing</code>, then
 it will unset the old model.
</p></div></div><div class="top"><p class="src"><a name="v:cellViewGetSizeOfRow" class="def">cellViewGetSizeOfRow</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewGetSizeOfRow" 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-CellView.html#t:CellViewClass">CellViewClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></td><td class="doc"><p><code>path</code> - a <code><a href="Graphics-UI-Gtk-ModelView-TreeModel.html#t:TreePath">TreePath</a></code>
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Requisition">Requisition</a></td><td class="doc"><p>returns the size requisition
</p></td></tr></table></div><div class="doc"><p>Returns the size needed by the cell view to display the model
 row pointed to by <code>path</code>.
</p></div></div><div class="top"><p class="src"><a name="v:cellViewSetBackgroundColor" class="def">cellViewSetBackgroundColor</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewSetBackgroundColor" 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-CellView.html#t:CellViewClass">CellViewClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Gdk-GC.html#t:Color">Color</a></td><td class="doc"><p><code>color</code> - the new background color
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the background color of <code>view</code>.
</p></div></div><div class="top"><p class="src"><a name="v:cellViewGetCellRenderers" class="def">cellViewGetCellRenderers</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-UI-Gtk-ModelView-CellRenderer.html#t:CellRenderer">CellRenderer</a>]<a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewGetCellRenderers" class="link">Source</a></p><div class="doc"><p>Returns the cell renderers which have been added to <code>cellView</code>.
</p></div></div><h1 id="g:6">Attributes
</h1><div class="top"><p class="src"><a name="v:cellViewBackground" class="def">cellViewBackground</a> :: <a href="Graphics-UI-Gtk-ModelView-CellView.html#t:CellViewClass">CellViewClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:WriteAttr">WriteAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-ModelView-CellView.html#cellViewBackground" class="link">Source</a></p><div class="doc"><p>Background color as a string.
</p><p>Default value: <code>&quot;&quot;</code>
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>