Sophie

Sophie

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

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.Abstract.Box</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-Abstract-Box.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Abstract-Box.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.Abstract.Box</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">Methods
</a></li><li><a href="#g:5">Attributes
</a></li><li><a href="#g:6">Child Attributes
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Base class for box containers
</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:Box">Box</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> o =&gt; <a href="#t:BoxClass">BoxClass</a> o </li><li class="src short"><a href="#v:castToBox">castToBox</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-Abstract-Box.html#t:Box">Box</a></li><li class="src short"><a href="#v:gTypeBox">gTypeBox</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toBox">toBox</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:Packing">Packing</a> <ul class="subs"><li>= <a href="#v:PackRepel">PackRepel</a>  </li><li>| <a href="#v:PackGrow">PackGrow</a>  </li><li>| <a href="#v:PackNatural">PackNatural</a>  </li></ul></li><li class="src short"><a href="#v:boxPackStart">boxPackStart</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; self -&gt; child -&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:boxPackEnd">boxPackEnd</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; self -&gt; child -&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:boxPackStartDefaults">boxPackStartDefaults</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget) =&gt; self -&gt; widget -&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:boxPackEndDefaults">boxPackEndDefaults</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget) =&gt; self -&gt; widget -&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:boxGetHomogeneous">boxGetHomogeneous</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</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="/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:boxSetHomogeneous">boxSetHomogeneous</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</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:boxGetSpacing">boxGetSpacing</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</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="/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:boxSetSpacing">boxSetSpacing</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:boxReorderChild">boxReorderChild</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; self -&gt; child -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</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:boxQueryChildPacking">boxQueryChildPacking</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; self -&gt; child -&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-Box.html#t:Packing">Packing</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-General-Enums.html#t:PackType">PackType</a>)</li><li class="src short"><a href="#v:boxSetChildPacking">boxSetChildPacking</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; self -&gt; child -&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:PackType">PackType</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:boxSpacing">boxSpacing</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self =&gt; <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:boxHomogeneous">boxHomogeneous</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self =&gt; <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:boxChildPacking">boxChildPacking</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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-Abstract-Box.html#t:Packing">Packing</a></li><li class="src short"><a href="#v:boxChildPadding">boxChildPadding</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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:boxChildPackType">boxChildPackType</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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-General-Enums.html#t:PackType">PackType</a></li><li class="src short"><a href="#v:boxChildPosition">boxChildPosition</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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><code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> is an abstract widget which encapsulates functionality for a
 particular kind of container, one that organizes a variable number of
 widgets into a rectangular area. <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> currently has two derived classes,
 <code><a href="Graphics-UI-Gtk-Layout-HBox.html#t:HBox">HBox</a></code> and <code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code>.
</p><p>The rectangular area of a <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> is organized into either a single row or
 a single column of child widgets depending upon whether the box is of type
 <code><a href="Graphics-UI-Gtk-Layout-HBox.html#t:HBox">HBox</a></code> or <code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code>, respectively. Thus, all children of a <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> are allocated
 one dimension in common, which is the height of a row, or the width of a
 column.
</p><p><code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> uses a notion of <em>packing</em>. Packing refers to adding widgets with
 reference to a particular position in a <code><a href="Graphics-UI-Gtk-Abstract-Container.html#t:Container">Container</a></code>. For a <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code>, there are
 two reference positions: the <em>start</em> and the <em>end</em> of the box. For a <code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code>,
 the start is defined as the top of the box and the end is defined as the
 bottom. For a <code><a href="Graphics-UI-Gtk-Layout-HBox.html#t:HBox">HBox</a></code> the start is defined as the left side and the end is
 defined as the right side.
</p><p>Use repeated calls to <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackStart">boxPackStart</a></code> to pack widgets into a <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> from
 start to end. Use <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackEnd">boxPackEnd</a></code> to add widgets from end to start. You may
 intersperse these calls and add widgets from both ends of the same <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code>.
 Besides adding widgets at the start or the end of a box, you can also
 specify the padding around each widget (in pixels) and a <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></code>
 parameter that denotes how to fill up unused space.
 The functions <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackStartDefaults">boxPackStartDefaults</a></code> or <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackEndDefaults">boxPackEndDefaults</a></code>
 are a convenient way to pack widgets into a <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> without specifying
 these extra paramters.
</p><p>While the right amount of padding around each widget is a matter of
 appearance, the <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></code> paramter specifies the way the widgets in
 the container behave when the window is resized and thereby affect
 the usability. Hence, once you have created a window, you should resize
 it and see if the widgets behave as expected. The <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></code> parameter of
 each child widget determines how excess space is used by that particular
 widget. See the description of <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></code> for a detailed explanaition.
</p><p>Because <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> is a <code><a href="Graphics-UI-Gtk-Abstract-Container.html#t:Container">Container</a></code>, you may also use
 <code>Graphics.UI.Gtk.Abstract.Container.containerAdd</code> to insert widgets into
 the box, and they will be packed as if with <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackStartDefaults">boxPackStartDefaults</a></code>. Use
 <code>Graphics.UI.Gtk.Abstract.Container.containerRemove</code> to remove widgets
 from the <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code>.
</p><p>Use <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxSetHomogeneous">boxSetHomogeneous</a></code> to specify whether or not all children of the
 <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> are forced to get the same amount of space. Note that the
 <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></code> options <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackNatural">PackNatural</a></code> and <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackRepel">PackRepel</a></code> coincide if space is
 allotted homogeneously.
</p><p>Use <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxSetSpacing">boxSetSpacing</a></code> to determine how much space will be minimally placed
 between all children in the <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code>.
</p><p>Use <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxReorderChild">boxReorderChild</a></code> to move a <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> child to a different place in the
 box.
</p><p>Use <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxSetChildPacking">boxSetChildPacking</a></code> to reset the expand, fill, and padding
 attributes of any <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code> child. Use <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxQueryChildPacking">boxQueryChildPacking</a></code> to query these
 fields.
</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>
 | +----Box
 | +----<code><a href="Graphics-UI-Gtk-Abstract-ButtonBox.html#t:ButtonBox">ButtonBox</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Layout-HBox.html#t:HBox">HBox</a></code>
</pre></div><h1 id="g:3">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Box" class="def">Box</a>  <a href="src/Graphics-UI-Gtk-Types.html#Box" class="link">Source</a></p><div class="subs instances"><p id="control.i:Box" class="caption collapser" onclick="toggleSection('i:Box')">Instances</p><div id="section.i:Box" 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-Abstract-Box.html#t:Box">Box</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-Abstract-Box.html#t:Box">Box</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-Abstract-Box.html#t:Box">Box</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</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-Abstract-Box.html#t:Box">Box</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-Abstract-Box.html#t:Box">Box</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-Container.html#t:ContainerClass">ContainerClass</a> o =&gt; <a name="t:BoxClass" class="def">BoxClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#BoxClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:BoxClass" class="caption collapser" onclick="toggleSection('i:BoxClass')">Instances</p><div id="section.i:BoxClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Display-Statusbar.html#t:Statusbar">Statusbar</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Selectors-FileChooserButton.html#t:FileChooserButton">FileChooserButton</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-MenuComboToolbar-Combo.html#t:Combo">Combo</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Display-InfoBar.html#t:InfoBar">InfoBar</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Layout-HBox.html#t:HBox">HBox</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Selectors-FileChooserWidget.html#t:FileChooserWidget">FileChooserWidget</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Selectors-ColorSelection.html#t:ColorSelection">ColorSelection</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Recent-RecentChooserWidget.html#t:RecentChooserWidget">RecentChooserWidget</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Layout-VButtonBox.html#t:VButtonBox">VButtonBox</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Layout-HButtonBox.html#t:HButtonBox">HButtonBox</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Abstract-ButtonBox.html#t:ButtonBox">ButtonBox</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToBox" class="def">castToBox</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-Abstract-Box.html#t:Box">Box</a><a href="src/Graphics-UI-Gtk-Types.html#castToBox" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeBox" class="def">gTypeBox</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeBox" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toBox" class="def">toBox</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a><a href="src/Graphics-UI-Gtk-Types.html#toBox" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Packing" class="def">Packing</a>  <a href="src/Graphics-UI-Gtk-General-Enums.html#Packing" class="link">Source</a></p><div class="doc"><p>Packing parameters of a widget
</p><ul><li> The <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></code> parameter determines how the child behaves in the horizontal
 or vertical way in an <code>Graphics.UI.Gtk.Layout.HBox</code> or
 <code>Graphics.UI.Gtk.Layout.VBox</code>, respectively. <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackNatural">PackNatural</a></code>
 means the child is as big as it reqests. It will stay at the start of the
 end of a <code>Graphics.UI.Gtk.Layout.Box</code> if there is more space available.
 All children packed with <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackRepel">PackRepel</a></code> will be padded on both sides with
 additional space. <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackGrow">PackGrow</a></code> will increase the size of a widget so that it
 covers the available space. A menu bar, for instance, should always
 stay at the top of a window and should only occupy as little space
 as possible. Hence it should be packed at the start of a
 <code>Graphics.UI.Gtk.Layout.VBox</code> with
 the packing option <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackNatural">PackNatural</a></code>. The working area of a window
 (e.g. the text area in an editor) should expand when the window is
 resized. Here the packing option <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackGrow">PackGrow</a></code> is the right choice and
 it is irrelevant whether the main area is inserted at the start or
 the end of a box. Finally <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackRepel">PackRepel</a></code> is most useful in a window
 where no widget can make use of excess space. Examples include a
 dialog box without list boxes or text fields.
</li></ul></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:PackRepel" class="def">PackRepel</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PackGrow" class="def">PackGrow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PackNatural" class="def">PackNatural</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Packing" class="caption collapser" onclick="toggleSection('i:Packing')">Instances</p><div id="section.i:Packing" class="show"><table><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-Abstract-Box.html#t:Packing">Packing</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-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</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/Text-Show.html#t:Show">Show</a> <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:4">Methods
</h1><div class="top"><p class="src"><a name="v:boxPackStart" class="def">boxPackStart</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxPackStart" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child)</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; child</td><td class="doc"><p><code>child</code> - the <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> to be added to the box.
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>padding</code> - extra space in pixels to put between this child and
 its neighbors, over and above the global amount specified by
 spacing <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxSetSpacing">boxSetSpacing</a></code>. If <code>child</code>
 is a widget at one of the reference ends of <code>box</code>, then <code>padding</code>
 pixels are also put between <code>child</code> and the reference edge of
 <code>box</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>Adds the <code>child</code> widget to the box, packed with reference to the start of
 the box. The
 <code>child</code> is packed after any other child packed with reference to the start
 of the box.
</p></div></div><div class="top"><p class="src"><a name="v:boxPackEnd" class="def">boxPackEnd</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxPackEnd" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child)</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; child</td><td class="doc"><p><code>child</code> - the <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> to be added to the box.
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></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-Int.html#t:Int">Int</a></td><td class="doc"><p><code>padding</code> - extra space in pixels to put between this child and
 its neighbors, over and above the global amount specified by
 spacing <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxSetSpacing">boxSetSpacing</a></code>. If <code>child</code>
 is a widget at one of the reference ends of <code>box</code>, then <code>padding</code>
 pixels are also put between <code>child</code> and the reference edge of
 <code>box</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>Adds the <code>child</code> widget to the box, packed with reference to the end of
 the box. The
 <code>child</code> is packed after (away from end of) any other child packed with
 reference to the end of the box.
</p><p>Note that
 for <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackEnd">boxPackEnd</a></code> the <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackNatural">PackNatural</a></code> option will move a child to the right in
 an <code><a href="Graphics-UI-Gtk-Layout-HBox.html#t:HBox">HBox</a></code> or to the bottom in an <code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code> if there is more space availble.
</p></div></div><div class="top"><p class="src"><a name="v:boxPackStartDefaults" class="def">boxPackStartDefaults</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxPackStartDefaults" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget)</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; widget</td><td class="doc"><p><code>widget</code> - the <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> to be added to the box.
</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>Like <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackStart">boxPackStart</a></code> but uses the default parameters <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackRepel">PackRepel</a></code> and 0 for
 padding.
</p></div></div><div class="top"><p class="src"><a name="v:boxPackEndDefaults" class="def">boxPackEndDefaults</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxPackEndDefaults" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget)</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; widget</td><td class="doc"><p><code>widget</code> - the <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> to be added to the box.
</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>Like <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxPackEnd">boxPackEnd</a></code> but uses the default parameters <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackRepel">PackRepel</a></code> and 0 for
 padding.
</p></div></div><div class="top"><p class="src"><a name="v:boxGetHomogeneous" class="def">boxGetHomogeneous</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxGetHomogeneous" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</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="/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 box is homogeneous.
</p></td></tr></table></div><div class="doc"><p>Returns whether the box is homogeneous (all children are the same size).
 See <code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:boxSetHomogeneous">boxSetHomogeneous</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:boxSetHomogeneous" class="def">boxSetHomogeneous</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxSetHomogeneous" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</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="/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> - a boolean value, <code>True</code> to create equal
 allotments, <code>False</code> for variable allotments.
</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 homogeneous property,
 controlling whether or not all children of the box are given equal space
</p></div></div><div class="top"><p class="src"><a name="v:boxGetSpacing" class="def">boxGetSpacing</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxGetSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</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="/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 spacing between children
</p></td></tr></table></div><div class="doc"><p>Retrieves the standard spacing between widgets.
</p></div></div><div class="top"><p class="src"><a name="v:boxSetSpacing" class="def">boxSetSpacing</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxSetSpacing" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</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="/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 to put between children.
</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>Set the standard spacing between two children.
</p><p>This space is in addition to the padding parameter that is given for each
 child.
</p></div></div><div class="top"><p class="src"><a name="v:boxReorderChild" class="def">boxReorderChild</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxReorderChild" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child)</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; child</td><td class="doc"><p><code>child</code> - the <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> to move.
</p></td></tr><tr><td class="src">-&gt; <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>position</code> - the new position for <code>child</code> in the children list
 starting from 0. If negative, indicates the end of the list.
</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>Moves <code>child</code> to a new <code>position</code> in the list of <code>box</code> children. The list
 contains both widgets packed <code><a href="Graphics-UI-Gtk-General-Enums.html#v:PackStart">PackStart</a></code> as well as widgets packed
 <code><a href="Graphics-UI-Gtk-General-Enums.html#v:PackEnd">PackEnd</a></code>, in the order that these widgets were added to the box.
</p><p>A widget's position in the box children list determines where the
 widget is packed into the box. A child widget at some position in the list
 will be packed just after all other widgets of the same packing type that
 appear earlier in the list.
</p></div></div><div class="top"><p class="src"><a name="v:boxQueryChildPacking" class="def">boxQueryChildPacking</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxQueryChildPacking" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child)</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; child</td><td class="doc"><p><code>child</code> - the <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> of the child to query.
</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-Box.html#t:Packing">Packing</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-General-Enums.html#t:PackType">PackType</a>)</td><td class="doc"><pre>(packing, padding, packType)</pre></td></tr></table></div><div class="doc"><p>Returns information about how <code>child</code> is packed into the box.
</p><p>Returns information on the behaviour if free space is available
 (in <code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></code>), the additional padding for this widget and if the widget
 was inserted at the start or end of the container (<code><a href="Graphics-UI-Gtk-General-Enums.html#t:PackType">PackType</a></code>).
</p></div></div><div class="top"><p class="src"><a name="v:boxSetChildPacking" class="def">boxSetChildPacking</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxSetChildPacking" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child)</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; child</td><td class="doc"><p><code>child</code> - the <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code> of the child to set.
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Abstract-Box.html#t:Packing">Packing</a></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-Int.html#t:Int">Int</a></td><td class="doc"><pre>padding</pre></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-General-Enums.html#t:PackType">PackType</a></td><td class="doc"><pre>packType</pre></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 way <code>child</code> is packed into the box.
</p></div></div><h1 id="g:5">Attributes
</h1><div class="top"><p class="src"><a name="v:boxSpacing" class="def">boxSpacing</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self =&gt; <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-Abstract-Box.html#boxSpacing" class="link">Source</a></p><div class="doc"><p>The amount of space between children.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 0
</p></div></div><div class="top"><p class="src"><a name="v:boxHomogeneous" class="def">boxHomogeneous</a> :: <a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self =&gt; <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-Abstract-Box.html#boxHomogeneous" class="link">Source</a></p><div class="doc"><p>Whether the children should all be the same size.
</p><p>Default value: <code>False</code>
</p></div></div><h1 id="g:6">Child Attributes
</h1><div class="top"><p class="src"><a name="v:boxChildPacking" class="def">boxChildPacking</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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-Abstract-Box.html#t:Packing">Packing</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxChildPacking" class="link">Source</a></p><div class="doc"><p>The packing style of the child.
</p><p>Default value: <code><code><a href="Graphics-UI-Gtk-Abstract-Box.html#v:PackGrow">PackGrow</a></code></code>
</p></div></div><div class="top"><p class="src"><a name="v:boxChildPadding" class="def">boxChildPadding</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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-Abstract-Box.html#boxChildPadding" class="link">Source</a></p><div class="doc"><p>Extra space to put between the child and its neighbors, in pixels.
</p><p>Allowed values: &lt;= <code>(<code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#v:maxBound">maxBound</a></code> :: Int)</code>
</p><p>Default value: 0
</p></div></div><div class="top"><p class="src"><a name="v:boxChildPackType" class="def">boxChildPackType</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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-General-Enums.html#t:PackType">PackType</a><a href="src/Graphics-UI-Gtk-Abstract-Box.html#boxChildPackType" class="link">Source</a></p><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-General-Enums.html#t:PackType">PackType</a></code> indicating whether the child is packed with reference to the
 start or end of the parent.
</p><p>Default value: <code><a href="Graphics-UI-Gtk-General-Enums.html#v:PackStart">PackStart</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:boxChildPosition" class="def">boxChildPosition</a> :: (<a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> child) =&gt; child -&gt; <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-Abstract-Box.html#boxChildPosition" class="link">Source</a></p><div class="doc"><p>The index of the child in the parent.
</p><p>Allowed values: &gt;= -1
</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>