<!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.HButtonBox</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-HButtonBox.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-HButtonBox.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.HButtonBox</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 container for arranging buttons horizontally </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%3AHButtonBox" >HButtonBox</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="Graphics-UI-Gtk-Abstract-ButtonBox.html#t%3AButtonBoxClass" >ButtonBoxClass</A > o => <A HREF="#t%3AHButtonBoxClass" >HButtonBoxClass</A > o </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AcastToHButtonBox" >castToHButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AgTypeHButtonBox" >gTypeHButtonBox</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%3AtoHButtonBox" >toHButtonBox</A > :: <A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBoxClass" >HButtonBoxClass</A > o => o -> <A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AhButtonBoxNew" >hButtonBoxNew</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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 >A button box should be used to provide a consistent layout of buttons throughout your application. The layout/spacing can be altered by the programmer, or if desired, by the user to alter the 'feel' of a program to a small degree. </P ><P >A <TT ><A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TT > is created with <TT ><A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#v%3AhButtonBoxNew" >hButtonBoxNew</A ></TT >. Buttons are packed into a button box the same way widgets are added to any other container, using Graphics.UI.Gtk.Abstract.Container.containerAdd. You can also use Graphics.UI.Gtk.Abstract.Box.boxPackStart or Graphics.UI.Gtk.Abstract.Box.boxPackEnd, but for button boxes both these functions work just like Graphics.UI.Gtk.Abstract.Container.containerAdd, ie., they pack the button in a way that depends on the current layout style and on whether the button has had Graphics.UI.Gtk.Abstract.ButtonBox.buttonBoxSetChildSecondary called on it. </P ><P >The spacing between buttons can be set with Graphics.UI.Gtk.Abstract.Box.boxSetSpacing. The arrangement and layout of the buttons can be changed with Graphics.UI.Gtk.Abstract.ButtonBox.buttonBoxSetLayout. </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 > | +----<TT ><A HREF="Graphics-UI-Gtk-Abstract-ButtonBox.html#t%3AButtonBox" >ButtonBox</A ></TT > | +----HButtonBox </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:HButtonBox" ><A NAME="t%3AHButtonBox" ></A ></A ><B >HButtonBox</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#HButtonBox" >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:HButtonBox')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:HButtonBox" 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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBoxClass" >HButtonBoxClass</A > <A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Abstract-ButtonBox.html#t%3AButtonBoxClass" >ButtonBoxClass</A > <A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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-ButtonBox.html#t%3AButtonBoxClass" >ButtonBoxClass</A > o => <A NAME="t:HButtonBoxClass" ><A NAME="t%3AHButtonBoxClass" ></A ></A ><B >HButtonBoxClass</B > o </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#HButtonBoxClass" >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:HButtonBoxClass')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:HButtonBoxClass" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBoxClass" >HButtonBoxClass</A > <A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBox" >HButtonBox</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:castToHButtonBox" ><A NAME="v%3AcastToHButtonBox" ></A ></A ><B >castToHButtonBox</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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#castToHButtonBox" >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:gTypeHButtonBox" ><A NAME="v%3AgTypeHButtonBox" ></A ></A ><B >gTypeHButtonBox</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#gTypeHButtonBox" >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:toHButtonBox" ><A NAME="v%3AtoHButtonBox" ></A ></A ><B >toHButtonBox</B > :: <A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBoxClass" >HButtonBoxClass</A > o => o -> <A HREF="Graphics-UI-Gtk-Layout-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#toHButtonBox" >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:hButtonBoxNew" ><A NAME="v%3AhButtonBoxNew" ></A ></A ><B >hButtonBoxNew</B > :: <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-HButtonBox.html#t%3AHButtonBox" >HButtonBox</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-HButtonBox.html#hButtonBoxNew" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Creates a new horizontal button box. </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 >