<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Graphics.UI.Gtk.Layout.HBox</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ><SCRIPT TYPE="text/javascript" >window.onload = function () {setSynopsis("mini_Graphics-UI-Gtk-Layout-HBox.html")};</SCRIPT ></HEAD ><BODY ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="topbar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" " ></TD ><TD CLASS="title" >gtk-0.11.2: Binding to the Gtk+ graphical user interface library.</TD ><TD CLASS="topbut" ><A HREF="src/Graphics-UI-Gtk-Layout-HBox.html" >Source code</A ></TD ><TD CLASS="topbut" ><A HREF="index.html" >Contents</A ></TD ><TD CLASS="topbut" ><A HREF="doc-index.html" >Index</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="modulebar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><FONT SIZE="6" >Graphics.UI.Gtk.Layout.HBox</FONT ></TD ><TD ALIGN="right" ><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="infohead" >Portability</TD ><TD CLASS="infoval" >portable (depends on GHC)</TD ></TR ><TR ><TD CLASS="infohead" >Stability</TD ><TD CLASS="infoval" >provisional</TD ></TR ><TR ><TD CLASS="infohead" >Maintainer</TD ><TD CLASS="infoval" >gtk2hs-users@lists.sourceforge.net</TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" ><B >Contents</B ></TD ></TR ><TR ><TD ><DL ><DT ><A HREF="#1" >Detail </A ></DT ><DT ><A HREF="#2" >Class Hierarchy </A ></DT ><DT ><A HREF="#3" >Types </A ></DT ><DT ><A HREF="#4" >Constructors </A ></DT ></DL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Description</TD ></TR ><TR ><TD CLASS="doc" >A horizontal container box </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Synopsis</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3AHBox" >HBox</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="Graphics-UI-Gtk-Abstract-Box.html#t%3ABoxClass" >BoxClass</A > o => <A HREF="#t%3AHBoxClass" >HBoxClass</A > o </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AcastToHBox" >castToHBox</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > obj => obj -> <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AgTypeHBox" >gTypeHBox</A > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType" >GType</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AtoHBox" >toHBox</A > :: <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBoxClass" >HBoxClass</A > o => o -> <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AhBoxNew" >hBoxNew</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="1" ><A NAME="1" >Detail </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="doc" ><P ><TT ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TT > is a container that organizes child widgets into a single row. </P ><P >Use the <TT ><A HREF="Graphics-UI-Gtk-Abstract-Box.html#t%3ABox" >Box</A ></TT > packing interface to determine the arrangement, spacing, width, and alignment of <TT ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TT > children. </P ><P >All children are allocated the same height. </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="2" ><A NAME="2" >Class Hierarchy </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="doc" ><PRE > | <TT ><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObject" >GObject</A ></TT > | +----<TT ><A HREF="Graphics-UI-Gtk-Abstract-Object.html#t%3AObject" >Object</A ></TT > | +----<TT ><A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AWidget" >Widget</A ></TT > | +----<TT ><A HREF="Graphics-UI-Gtk-Abstract-Container.html#t%3AContainer" >Container</A ></TT > | +----<TT ><A HREF="Graphics-UI-Gtk-Abstract-Box.html#t%3ABox" >Box</A ></TT > | +----HBox | +----<TT ><A HREF="Graphics-UI-Gtk-MenuComboToolbar-Combo.html#t%3ACombo" >Combo</A ></TT > | +----<TT ><A HREF="Graphics-UI-Gtk-Selectors-FileChooserButton.html#t%3AFileChooserButton" >FileChooserButton</A ></TT > | +----<TT ><A HREF="Graphics-UI-Gtk-Display-Statusbar.html#t%3AStatusbar" >Statusbar</A ></TT > </PRE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="3" ><A NAME="3" >Types </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><SPAN CLASS="keyword" >data</SPAN > <A NAME="t:HBox" ><A NAME="t%3AHBox" ></A ></A ><B >HBox</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#HBox" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:HBox')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:HBox" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Eq.html#t%3AEq" >Eq</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Ord.html#t%3AOrd" >Ord</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBoxClass" >HBoxClass</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Abstract-Box.html#t%3ABoxClass" >BoxClass</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Abstract-Container.html#t%3AContainerClass" >ContainerClass</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AWidgetClass" >WidgetClass</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Abstract-Object.html#t%3AObjectClass" >ObjectClass</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="Graphics-UI-Gtk-Abstract-Box.html#t%3ABoxClass" >BoxClass</A > o => <A NAME="t:HBoxClass" ><A NAME="t%3AHBoxClass" ></A ></A ><B >HBoxClass</B > o </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#HBoxClass" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:HBoxClass')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:HBoxClass" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBoxClass" >HBoxClass</A > <A HREF="Graphics-UI-Gtk-Display-Statusbar.html#t%3AStatusbar" >Statusbar</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBoxClass" >HBoxClass</A > <A HREF="Graphics-UI-Gtk-Selectors-FileChooserButton.html#t%3AFileChooserButton" >FileChooserButton</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBoxClass" >HBoxClass</A > <A HREF="Graphics-UI-Gtk-MenuComboToolbar-Combo.html#t%3ACombo" >Combo</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBoxClass" >HBoxClass</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:castToHBox" ><A NAME="v%3AcastToHBox" ></A ></A ><B >castToHBox</B > :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > obj => obj -> <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#castToHBox" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:gTypeHBox" ><A NAME="v%3AgTypeHBox" ></A ></A ><B >gTypeHBox</B > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType" >GType</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#gTypeHBox" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:toHBox" ><A NAME="v%3AtoHBox" ></A ></A ><B >toHBox</B > :: <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBoxClass" >HBoxClass</A > o => o -> <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#toHBox" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="4" ><A NAME="4" >Constructors </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:hBoxNew" ><A NAME="v%3AhBoxNew" ></A ></A ><B >hBoxNew</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-HBox.html#hBoxNew" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ><TD CLASS="rdoc" ><TT >homogeneous</TT > - <TT >True</TT > if all children are to be given equal space allotments. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="rdoc" ><TT >spacing</TT > - the number of pixels to place by default between children. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" >Creates a new <TT ><A HREF="Graphics-UI-Gtk-Layout-HBox.html#t%3AHBox" >HBox</A ></TT >. </TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http://www.haskell.org/haddock/" >Haddock</A > version 2.6.1</TD ></TR ></TABLE ></BODY ></HTML >