<!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.Layout.Table</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-Layout-Table.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Layout-Table.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.Layout.Table</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><li><a href="#g:7">Child Attributes </a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>The table widget is a container in which widgets can be aligned in cells. </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:Table">Table</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> o => <a href="#t:TableClass">TableClass</a> o </li><li class="src short"><a href="#v:castToTable">castToTable</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-Layout-Table.html#t:Table">Table</a></li><li class="src short"><a href="#v:gTypeTable">gTypeTable</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toTable">toTable</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> o => o -> <a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></li><li class="src short"><a href="#v:tableNew">tableNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</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-Layout-Table.html#t:Table">Table</a></li><li class="src short"><a href="#v:tableResize">tableResize</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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"><span class="keyword">data</span> <a href="#t:AttachOptions">AttachOptions</a> <ul class="subs"><li>= <a href="#v:Expand">Expand</a> </li><li>| <a href="#v:Shrink">Shrink</a> </li><li>| <a href="#v:Fill">Fill</a> </li></ul></li><li class="src short"><a href="#v:tableAttach">tableAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => self -> child -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>] -> [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>] -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:tableAttachDefaults">tableAttachDefaults</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget) => self -> widget -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:tableSetRowSpacing">tableSetRowSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:tableGetRowSpacing">tableGetRowSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:tableSetColSpacing">tableSetColSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:tableGetColSpacing">tableGetColSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:tableSetRowSpacings">tableSetRowSpacings</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:tableGetDefaultRowSpacing">tableGetDefaultRowSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:tableSetColSpacings">tableSetColSpacings</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:tableGetDefaultColSpacing">tableGetDefaultColSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:tableSetHomogeneous">tableSetHomogeneous</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => self -> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</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:tableGetHomogeneous">tableGetHomogeneous</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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:tableGetSize">tableGetSize</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</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:tableNRows">tableNRows</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableNColumns">tableNColumns</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableRowSpacing">tableRowSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableColumnSpacing">tableColumnSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableHomogeneous">tableHomogeneous</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableChildLeftAttach">tableChildLeftAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableChildRightAttach">tableChildRightAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableChildTopAttach">tableChildTopAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableChildBottomAttach">tableChildBottomAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableChildXOptions">tableChildXOptions</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>]</li><li class="src short"><a href="#v:tableChildYOptions">tableChildYOptions</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>]</li><li class="src short"><a href="#v:tableChildXPadding">tableChildXPadding</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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:tableChildYPadding">tableChildYPadding</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li></ul></div><div id="interface"><h1 id="g:1">Detail </h1><div class="doc"><p>The <code><a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></code> functions allow the programmer to arrange widgets in rows and columns, making it easy to align many widgets next to each other, horizontally and vertically. </p><p>Tables are created with a call to <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableNew">tableNew</a></code>, the size of which can later be changed with <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableResize">tableResize</a></code>. </p><p>Widgets can be added to a table using <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableAttach">tableAttach</a></code> or the more convenient (but slightly less flexible) <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableAttachDefaults">tableAttachDefaults</a></code>. </p><p>To alter the space next to a specific row, use <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetRowSpacing">tableSetRowSpacing</a></code>, and for a column, <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetColSpacing">tableSetColSpacing</a></code>. </p><p>The gaps between <em>all</em> rows or columns can be changed by calling <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetRowSpacings">tableSetRowSpacings</a></code> or <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetColSpacings">tableSetColSpacings</a></code> respectively. </p><p><code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetHomogeneous">tableSetHomogeneous</a></code>, can be used to set whether all cells in the table will resize themselves to the size of the largest widget in the table. </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> | +----<code><a href="Graphics-UI-Gtk-Abstract-Container.html#t:Container">Container</a></code> | +----Table </pre></div><h1 id="g:3">Types </h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Table" class="def">Table</a> <a href="src/Graphics-UI-Gtk-Types.html#Table" class="link">Source</a></p><div class="subs instances"><p id="control.i:Table" class="caption collapser" onclick="toggleSection('i:Table')">Instances</p><div id="section.i:Table" 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-Layout-Table.html#t:Table">Table</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-Layout-Table.html#t:Table">Table</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-Layout-Table.html#t:Table">Table</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Object.html#t:ObjectClass">ObjectClass</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</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="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> o => <a name="t:TableClass" class="def">TableClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#TableClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:TableClass" class="caption collapser" onclick="toggleSection('i:TableClass')">Instances</p><div id="section.i:TableClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToTable" class="def">castToTable</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-Layout-Table.html#t:Table">Table</a><a href="src/Graphics-UI-Gtk-Types.html#castToTable" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeTable" class="def">gTypeTable</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeTable" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toTable" class="def">toTable</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> o => o -> <a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a><a href="src/Graphics-UI-Gtk-Types.html#toTable" class="link">Source</a></p></div><h1 id="g:4">Constructors </h1><div class="top"><p class="src"><a name="v:tableNew" class="def">tableNew</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableNew" 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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>rows</code> - The number of rows the new table should have. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>columns</code> - The number of columns the new table should have. </p></td></tr><tr><td class="src">-> <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><code>homogeneous</code> - If set to <code>True</code>, all table cells are resized to the size of the cell containing the largest widget. </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="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Used to create a new table widget. An initial size must be given by specifying how many rows and columns the table should have, although this can be changed later with <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableResize">tableResize</a></code>. <code>rows</code> and <code>columns</code> must both be in the range 0 .. 65535. </p></div></div><h1 id="g:5">Methods </h1><div class="top"><p class="src"><a name="v:tableResize" class="def">tableResize</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableResize" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>rows</code> - The new number of rows. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>columns</code> - The new number of columns. </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>Change the dimensions of an already existing table. </p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:AttachOptions" class="def">AttachOptions</a> <a href="src/Graphics-UI-Gtk-General-Enums.html#AttachOptions" class="link">Source</a></p><div class="doc"><p>Child widget attach options for table containers </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Expand" class="def">Expand</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Shrink" class="def">Shrink</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:Fill" class="def">Fill</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:AttachOptions" class="caption collapser" onclick="toggleSection('i:AttachOptions')">Instances</p><div id="section.i:AttachOptions" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Bounded">Bounded</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</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/Prelude.html#t:Enum">Enum</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a></td><td class="doc"><p>Mouse buttons. </p></td></tr><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-Layout-Table.html#t:AttachOptions">AttachOptions</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/Text-Show.html#t:Show">Show</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</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-Flags.html#t:Flags">Flags</a> <a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:tableAttach" class="def">tableAttach</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableAttach" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child)</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> child</td><td class="doc"><p><code>child</code> - The widget to add. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>leftAttach</code> - the column number to attach the left side of a child widget to. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>rightAttach</code> - the column number to attach the right side of a child widget to. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>topAttach</code> - the row number to attach the top of a child widget to. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>bottomAttach</code> - the row number to attach the bottom of a child widget to. </p></td></tr><tr><td class="src">-> [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>]</td><td class="doc"><p><code>xoptions</code> - Used to specify the properties of the child widget when the table is resized. </p></td></tr><tr><td class="src">-> [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>]</td><td class="doc"><p><code>yoptions</code> - The same as xoptions, except this field determines behaviour of vertical resizing. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>xpadding</code> - An integer value specifying the padding on the left and right of the widget being added to the table. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>ypadding</code> - The amount of padding above and below the child widget. </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>Adds a widget to a table. The number of 'cells' that a widget will occupy is specified by <code>leftAttach</code>, <code>rightAttach</code>, <code>topAttach</code> and <code>bottomAttach</code>. These each represent the leftmost, rightmost, uppermost and lowest column and row numbers of the table. (Columns and rows are indexed from zero). </p></div></div><div class="top"><p class="src"><a name="v:tableAttachDefaults" class="def">tableAttachDefaults</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableAttachDefaults" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget)</td><td class="doc empty"> </td></tr><tr><td class="src">=> self</td><td class="doc empty"> </td></tr><tr><td class="src">-> widget</td><td class="doc"><p><code>widget</code> - The child widget to add. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>leftAttach</code> - The column number to attach the left side of the child widget to. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>rightAttach</code> - The column number to attach the right side of the child widget to. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>topAttach</code> - The row number to attach the top of the child widget to. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>bottomAttach</code> - The row number to attach the bottom of the child widget to. </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>As there are many options associated with <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableAttach">tableAttach</a></code>, this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. The values used for the <code><a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a></code> are <code>[<code><a href="Graphics-UI-Gtk-Layout-Table.html#v:Expand">Expand</a></code>, <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:Fill">Fill</a></code>]</code>, and the padding is set to 0. </p></div></div><div class="top"><p class="src"><a name="v:tableSetRowSpacing" class="def">tableSetRowSpacing</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableSetRowSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>row</code> - row number whose spacing will be changed. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>spacing</code> - number of pixels that the spacing should take up. </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>Changes the space between a given table row and its surrounding rows. </p></div></div><div class="top"><p class="src"><a name="v:tableGetRowSpacing" class="def">tableGetRowSpacing</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableGetRowSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>row</code> - a row in the table, 0 indicates the first row </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/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>returns the row spacing </p></td></tr></table></div><div class="doc"><p>Gets the amount of space between row <code>row</code>, and row <code>row</code> + 1. See <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetRowSpacing">tableSetRowSpacing</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:tableSetColSpacing" class="def">tableSetColSpacing</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableSetColSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>column</code> - the column whose spacing should be changed. </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>spacing</code> - number of pixels that the spacing should take up. </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>Alters the amount of space between a given table column and the adjacent columns. </p></div></div><div class="top"><p class="src"><a name="v:tableGetColSpacing" class="def">tableGetColSpacing</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableGetColSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>column</code> - a column in the table, 0 indicates the first 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/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>returns the column spacing </p></td></tr></table></div><div class="doc"><p>Gets the amount of space between column <code>col</code>, and column <code>col</code> + 1. See <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetColSpacing">tableSetColSpacing</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:tableSetRowSpacings" class="def">tableSetRowSpacings</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableSetRowSpacings" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>spacing</code> - the number of pixels of space to place between every row in the table. </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 space between every row in <code>table</code> equal to <code>spacing</code>. </p></div></div><div class="top"><p class="src"><a name="v:tableGetDefaultRowSpacing" class="def">tableGetDefaultRowSpacing</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableGetDefaultRowSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p>returns the default row spacing </p></td></tr></table></div><div class="doc"><p>Gets the default row spacing for the table. This is the spacing that will be used for newly added rows. (See <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetRowSpacings">tableSetRowSpacings</a></code>) </p></div></div><div class="top"><p class="src"><a name="v:tableSetColSpacings" class="def">tableSetColSpacings</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableSetColSpacings" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>spacing</code> - the number of pixels of space to place between every column in the table. </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 space between every column in <code>table</code> equal to <code>spacing</code>. </p></div></div><div class="top"><p class="src"><a name="v:tableGetDefaultColSpacing" class="def">tableGetDefaultColSpacing</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableGetDefaultColSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a></td><td class="doc"><p>returns the default column spacing </p></td></tr></table></div><div class="doc"><p>Gets the default column spacing for the table. This is the spacing that will be used for newly added columns. (See <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetColSpacings">tableSetColSpacings</a></code>) </p></div></div><div class="top"><p class="src"><a name="v:tableSetHomogeneous" class="def">tableSetHomogeneous</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableSetHomogeneous" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>homogeneous</code> - Set to <code>True</code> to ensure all table cells are the same size. Set to <code>False</code> if this is not your desired behaviour. </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>Changes the homogenous property of table cells, ie. whether all cells are an equal size or not. </p></div></div><div class="top"><p class="src"><a name="v:tableGetHomogeneous" class="def">tableGetHomogeneous</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableGetHomogeneous" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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 cells are all constrained to the same size </p></td></tr></table></div><div class="doc"><p>Returns whether the table cells are all constrained to the same width and height. (See <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:tableSetHomogeneous">tableSetHomogeneous</a></code>) </p></div></div><div class="top"><p class="src"><a name="v:tableGetSize" class="def">tableGetSize</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableGetSize" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</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-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>)</td><td class="doc"><p>returns (rows, columns) of table </p></td></tr></table></div><div class="doc"><p>Returns the size of <code><a href="Graphics-UI-Gtk-Layout-Table.html#t:Table">Table</a></code>. </p><ul><li> Available since Gtk+ version 2.22 </li></ul></div></div><h1 id="g:6">Attributes </h1><div class="top"><p class="src"><a name="v:tableNRows" class="def">tableNRows</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableNRows" class="link">Source</a></p><div class="doc"><p>The number of rows in the table. </p><p>Default value: 0 </p></div></div><div class="top"><p class="src"><a name="v:tableNColumns" class="def">tableNColumns</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableNColumns" class="link">Source</a></p><div class="doc"><p>The number of columns in the table. </p><p>Default value: 0 </p></div></div><div class="top"><p class="src"><a name="v:tableRowSpacing" class="def">tableRowSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableRowSpacing" class="link">Source</a></p><div class="doc"><p>The amount of space between two consecutive rows. </p><p>Default value: 0 </p></div></div><div class="top"><p class="src"><a name="v:tableColumnSpacing" class="def">tableColumnSpacing</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableColumnSpacing" class="link">Source</a></p><div class="doc"><p>The amount of space between two consecutive columns. </p><p>Default value: 0 </p></div></div><div class="top"><p class="src"><a name="v:tableHomogeneous" class="def">tableHomogeneous</a> :: <a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self => <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Layout-Table.html#tableHomogeneous" class="link">Source</a></p><div class="doc"><p>If <code>True</code> this means the table cells are all the same width/height. </p><p>Default value: <code>False</code> </p></div></div><h1 id="g:7">Child Attributes </h1><div class="top"><p class="src"><a name="v:tableChildLeftAttach" class="def">tableChildLeftAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableChildLeftAttach" class="link">Source</a></p><div class="doc"><p>The column number to attach the left side of the child to. </p><p>Allowed values: <= 65535 </p><p>Default value: 0 </p></div></div><div class="top"><p class="src"><a name="v:tableChildRightAttach" class="def">tableChildRightAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableChildRightAttach" class="link">Source</a></p><div class="doc"><p>The column number to attach the right side of a child widget to. </p><p>Allowed values: [1,65535] </p><p>Default value: 1 </p></div></div><div class="top"><p class="src"><a name="v:tableChildTopAttach" class="def">tableChildTopAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableChildTopAttach" class="link">Source</a></p><div class="doc"><p>The row number to attach the top of a child widget to. </p><p>Allowed values: <= 65535 </p><p>Default value: 0 </p></div></div><div class="top"><p class="src"><a name="v:tableChildBottomAttach" class="def">tableChildBottomAttach</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableChildBottomAttach" class="link">Source</a></p><div class="doc"><p>The row number to attach the bottom of the child to. </p><p>Allowed values: [1,65535] </p><p>Default value: 1 </p></div></div><div class="top"><p class="src"><a name="v:tableChildXOptions" class="def">tableChildXOptions</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>]<a href="src/Graphics-UI-Gtk-Layout-Table.html#tableChildXOptions" class="link">Source</a></p><div class="doc"><p>Options specifying the horizontal behaviour of the child. </p><p>Default value: <code>[<code><a href="Graphics-UI-Gtk-Layout-Table.html#v:Expand">Expand</a></code>, <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:Fill">Fill</a></code>]</code> </p></div></div><div class="top"><p class="src"><a name="v:tableChildYOptions" class="def">tableChildYOptions</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self [<a href="Graphics-UI-Gtk-Layout-Table.html#t:AttachOptions">AttachOptions</a>]<a href="src/Graphics-UI-Gtk-Layout-Table.html#tableChildYOptions" class="link">Source</a></p><div class="doc"><p>Options specifying the vertical behaviour of the child. </p><p>Default value: <code>[<code><a href="Graphics-UI-Gtk-Layout-Table.html#v:Expand">Expand</a></code>, <code><a href="Graphics-UI-Gtk-Layout-Table.html#v:Fill">Fill</a></code>]</code> </p></div></div><div class="top"><p class="src"><a name="v:tableChildXPadding" class="def">tableChildXPadding</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableChildXPadding" class="link">Source</a></p><div class="doc"><p>Extra space to put between the child and its left and right neighbors, in pixels. </p><p>Allowed values: <= 65535 </p><p>Default value: 0 </p></div></div><div class="top"><p class="src"><a name="v:tableChildYPadding" class="def">tableChildYPadding</a> :: (<a href="Graphics-UI-Gtk-Layout-Table.html#t:TableClass">TableClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) => child -> <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <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-Layout-Table.html#tableChildYPadding" class="link">Source</a></p><div class="doc"><p>Extra space to put between the child and its upper and lower neighbors, in pixels. </p><p>Allowed values: <= 65535 </p><p>Default value: 0 </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>