<!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.Alignment</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-Alignment.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-Alignment.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.Alignment</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 ><DT ><A HREF="#5" >Methods </A ></DT ><DT ><A HREF="#6" >Attributes </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 widget which controls the alignment and size of its child </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%3AAlignment" >Alignment</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="Graphics-UI-Gtk-Abstract-Bin.html#t%3ABinClass" >BinClass</A > o => <A HREF="#t%3AAlignmentClass" >AlignmentClass</A > o </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AcastToAlignment" >castToAlignment</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-Alignment.html#t%3AAlignment" >Alignment</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AgTypeAlignment" >gTypeAlignment</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%3AtoAlignment" >toAlignment</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > o => o -> <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentNew" >alignmentNew</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</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-Alignment.html#t%3AAlignment" >Alignment</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentSet" >alignmentSet</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => self -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</A > <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentSetPadding" >alignmentSetPadding</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => self -> <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/Data-Int.html#t%3AInt" >Int</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/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="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentGetPadding" >alignmentGetPadding</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => self -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO" >IO</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/Data-Int.html#t%3AInt" >Int</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/Data-Int.html#t%3AInt" >Int</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentXAlign" >alignmentXAlign</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentYAlign" >alignmentYAlign</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentXScale" >alignmentXScale</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentYScale" >alignmentYScale</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentTopPadding" >alignmentTopPadding</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentBottomPadding" >alignmentBottomPadding</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentLeftPadding" >alignmentLeftPadding</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AalignmentRightPadding" >alignmentRightPadding</A > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</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 >The <TT ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TT > widget controls the alignment and size of its child widget. It has four settings: xscale, yscale, xalign, and yalign. </P ><P >The scale settings are used to specify how much the child widget should expand to fill the space allocated to the <TT ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TT >. The values can range from 0 (meaning the child doesn't expand at all) to 1 (meaning the child expands to fill all of the available space). </P ><P >The align settings are used to place the child widget within the available area. The values range from 0 (top or left) to 1 (bottom or right). Of course, if the scale settings are both set to 1, the alignment settings have no effect. </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-Bin.html#t%3ABin" >Bin</A ></TT > | +----Alignment </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:Alignment" ><A NAME="t%3AAlignment" ></A ></A ><B >Alignment</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#Alignment" >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:Alignment')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:Alignment" 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-Alignment.html#t%3AAlignment" >Alignment</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-Alignment.html#t%3AAlignment" >Alignment</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-Alignment.html#t%3AAlignment" >Alignment</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Abstract-Bin.html#t%3ABinClass" >BinClass</A > <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</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-Alignment.html#t%3AAlignment" >Alignment</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-Alignment.html#t%3AAlignment" >Alignment</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-Alignment.html#t%3AAlignment" >Alignment</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-Bin.html#t%3ABinClass" >BinClass</A > o => <A NAME="t:AlignmentClass" ><A NAME="t%3AAlignmentClass" ></A ></A ><B >AlignmentClass</B > o </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#AlignmentClass" >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:AlignmentClass')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:AlignmentClass" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</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:castToAlignment" ><A NAME="v%3AcastToAlignment" ></A ></A ><B >castToAlignment</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-Alignment.html#t%3AAlignment" >Alignment</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#castToAlignment" >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:gTypeAlignment" ><A NAME="v%3AgTypeAlignment" ></A ></A ><B >gTypeAlignment</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#gTypeAlignment" >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:toAlignment" ><A NAME="v%3AtoAlignment" ></A ></A ><B >toAlignment</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > o => o -> <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#toAlignment" >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:alignmentNew" ><A NAME="v%3AalignmentNew" ></A ></A ><B >alignmentNew</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentNew" >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/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >xalign</TT > - the horizontal alignment of the child widget, from 0 (left) to 1 (right). </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >yalign</TT > - the vertical alignment of the child widget, from 0 (top) to 1 (bottom). </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >xscale</TT > - the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the <TT ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TT >. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >yscale</TT > - the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to <TT >xscale</TT >. </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-Alignment.html#t%3AAlignment" >Alignment</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" >Creates a new <TT ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TT >. </TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="5" ><A NAME="5" >Methods </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentSet" ><A NAME="v%3AalignmentSet" ></A ></A ><B >alignmentSet</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentSet" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >xalign</TT > - the horizontal alignment of the child widget, from 0 (left) to 1 (right). </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >yalign</TT > - the vertical alignment of the child widget, from 0 (top) to 1 (bottom). </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >xscale</TT > - the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the <TT ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TT >. </TD ></TR ><TR ><TD CLASS="arg" >-> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="rdoc" ><TT >yscale</TT > - the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to <TT >xscale</TT >. </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="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" >Sets the <TT ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignment" >Alignment</A ></TT > values. </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:alignmentSetPadding" ><A NAME="v%3AalignmentSetPadding" ></A ></A ><B >alignmentSetPadding</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentSetPadding" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></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 >paddingTop</TT > - the padding at the top of the widget </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 >paddingBottom</TT > - the padding at the bottom of the widget </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 >paddingLeft</TT > - the padding at the left of the widget </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 >paddingRight</TT > - the padding at the right of the widget. </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="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29" >()</A ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Sets the padding on the different sides of the widget. The padding adds blank space to the sides of the widget. For instance, this can be used to indent the child widget towards the right by adding padding on the left. </P ><UL ><LI > Available since Gtk+ version 2.4 </LI ></UL ></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:alignmentGetPadding" ><A NAME="v%3AalignmentGetPadding" ></A ></A ><B >alignmentGetPadding</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentGetPadding" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="arg" >:: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self</TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" >=> self</TD ><TD CLASS="rdoc" ></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="/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/Data-Int.html#t%3AInt" >Int</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/Data-Int.html#t%3AInt" >Int</A >)</TD ><TD CLASS="rdoc" ><TT >(paddingTop, paddingBottom, paddingLeft, paddingRight)</TT > - the padding at the top, bottom, left and right of the widget. </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" ><P >Gets the padding on the different sides of the widget. See <TT ><A HREF="Graphics-UI-Gtk-Layout-Alignment.html#v%3AalignmentSetPadding" >alignmentSetPadding</A ></TT >. </P ><UL ><LI > Available since Gtk+ version 2.4 </LI ></UL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" ><A NAME="6" ><A NAME="6" >Attributes </A ></A ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentXAlign" ><A NAME="v%3AalignmentXAlign" ></A ></A ><B >alignmentXAlign</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentXAlign" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned. </P ><P >Allowed values: [0,1] </P ><P >Default value: 0.5 </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentYAlign" ><A NAME="v%3AalignmentYAlign" ></A ></A ><B >alignmentYAlign</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentYAlign" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned. </P ><P >Allowed values: [0,1] </P ><P >Default value: 0.5 </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentXScale" ><A NAME="v%3AalignmentXScale" ></A ></A ><B >alignmentXScale</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentXScale" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >If available horizontal space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all. </P ><P >Allowed values: [0,1] </P ><P >Default value: 1 </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentYScale" ><A NAME="v%3AalignmentYScale" ></A ></A ><B >alignmentYScale</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AFloat" >Float</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentYScale" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >If available vertical space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all. </P ><P >Allowed values: [0,1] </P ><P >Default value: 1 </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentTopPadding" ><A NAME="v%3AalignmentTopPadding" ></A ></A ><B >alignmentTopPadding</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentTopPadding" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >The padding to insert at the top of the widget. </P ><P >Allowed values: <= <TT >(<TT ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#v%3AmaxBound" >maxBound</A ></TT > :: Int)</TT > </P ><P >Default value: 0 </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentBottomPadding" ><A NAME="v%3AalignmentBottomPadding" ></A ></A ><B >alignmentBottomPadding</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentBottomPadding" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >The padding to insert at the bottom of the widget. </P ><P >Allowed values: <= <TT >(<TT ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#v%3AmaxBound" >maxBound</A ></TT > :: Int)</TT > </P ><P >Default value: 0 </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentLeftPadding" ><A NAME="v%3AalignmentLeftPadding" ></A ></A ><B >alignmentLeftPadding</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentLeftPadding" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >The padding to insert at the left of the widget. </P ><P >Allowed values: <= <TT >(<TT ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#v%3AmaxBound" >maxBound</A ></TT > :: Int)</TT > </P ><P >Default value: 0 </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:alignmentRightPadding" ><A NAME="v%3AalignmentRightPadding" ></A ></A ><B >alignmentRightPadding</B > :: <A HREF="Graphics-UI-Gtk-Layout-Alignment.html#t%3AAlignmentClass" >AlignmentClass</A > self => <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-Attributes.html#t%3AAttr" >Attr</A > self <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Layout-Alignment.html#alignmentRightPadding" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >The padding to insert at the right of the widget. </P ><P >Allowed values: <= <TT >(<TT ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#v%3AmaxBound" >maxBound</A ></TT > :: Int)</TT > </P ><P >Default value: 0 </P ></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 >