<!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.General.IconFactory</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-General-IconFactory.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-General-IconFactory.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.General.IconFactory</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 ></DL ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Description</TD ></TR ><TR ><TD CLASS="doc" >Manipulating stock icons </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%3AIconFactory" >IconFactory</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >class</SPAN > <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > o => <A HREF="#t%3AIconFactoryClass" >IconFactoryClass</A > o </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AcastToIconFactory" >castToIconFactory</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-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AgTypeIconFactory" >gTypeIconFactory</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%3AtoIconFactory" >toIconFactory</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactoryClass" >IconFactoryClass</A > o => o -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconFactoryNew" >iconFactoryNew</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-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconFactoryAdd" >iconFactoryAdd</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A > -> <A HREF="Graphics-UI-Gtk-General-StockItems.html#t%3AStockId" >StockId</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</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%3AiconFactoryAddDefault" >iconFactoryAddDefault</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</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%3AiconFactoryLookup" >iconFactoryLookup</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A > -> <A HREF="Graphics-UI-Gtk-General-StockItems.html#t%3AStockId" >StockId</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconFactoryLookupDefault" >iconFactoryLookupDefault</A > :: <A HREF="Graphics-UI-Gtk-General-StockItems.html#t%3AStockId" >StockId</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconFactoryRemoveDefault" >iconFactoryRemoveDefault</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</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" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3AIconSet" >IconSet</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSetNew" >iconSetNew</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-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSetNewFromPixbuf" >iconSetNewFromPixbuf</A > :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</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-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSetAddSource" >iconSetAddSource</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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%3AiconSetRenderIcon" >iconSetRenderIcon</A > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AWidgetClass" >WidgetClass</A > widget => <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A > -> widget -> <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-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSetGetSizes" >iconSetGetSizes</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</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-General-IconFactory.html#t%3AIconSize" >IconSize</A >]</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3AIconSource" >IconSource</A > </TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceNew" >iconSourceNew</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-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3ATextDirection" >TextDirection</A > </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" >= <A HREF="#v%3ATextDirNone" >TextDirNone</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3ATextDirLtr" >TextDirLtr</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3ATextDirRtl" >TextDirRtl</A ></TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceGetDirection" >iconSourceGetDirection</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceSetDirection" >iconSourceSetDirection</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</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%3AiconSourceResetDirection" >iconSourceResetDirection</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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%3AiconSourceGetFilename" >iconSourceGetFilename</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceSetFilename" >iconSourceSetFilename</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AFilePath" >FilePath</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%3AiconSourceGetPixbuf" >iconSourceGetPixbuf</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceSetPixbuf" >iconSourceSetPixbuf</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</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%3AiconSourceGetSize" >iconSourceGetSize</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceSetSize" >iconSourceSetSize</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</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%3AiconSourceResetSize" >iconSourceResetSize</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3AStateType" >StateType</A > </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" >= <A HREF="#v%3AStateNormal" >StateNormal</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AStateActive" >StateActive</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AStatePrelight" >StatePrelight</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AStateSelected" >StateSelected</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AStateInsensitive" >StateInsensitive</A ></TD ></TR ></TABLE ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceGetState" >iconSourceGetState</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</A >)</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSourceSetState" >iconSourceSetState</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</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%3AiconSourceResetState" >iconSourceResetState</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >data</SPAN > <A HREF="#t%3AIconSize" >IconSize</A > </TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" >= <A HREF="#v%3AIconSizeInvalid" >IconSizeInvalid</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AIconSizeMenu" >IconSizeMenu</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AIconSizeSmallToolbar" >IconSizeSmallToolbar</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AIconSizeLargeToolbar" >IconSizeLargeToolbar</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AIconSizeButton" >IconSizeButton</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AIconSizeDnd" >IconSizeDnd</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AIconSizeDialog" >IconSizeDialog</A ></TD ></TR ><TR ><TD CLASS="decl" >| <A HREF="#v%3AIconSizeUser" >IconSizeUser</A > <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 ></TABLE ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSizeCheck" >iconSizeCheck</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</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/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSizeRegister" >iconSizeRegister</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</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="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSizeRegisterAlias" >iconSizeRegisterAlias</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</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%3AiconSizeFromName" >iconSizeFromName</A > :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</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-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AiconSizeGetName" >iconSizeGetName</A > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</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 >Browse the available stock icons in the list of stock IDs found here. You can also use the gtk-demo application for this purpose. </P ><P >An icon factory manages a collection of <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT >; a <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT > manages a set of variants of a particular icon (i.e. a <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT > contains variants for different sizes and widget states). Icons in an icon factory are named by a stock ID, which is a simple string identifying the icon. Each <TT ><A HREF="Graphics-UI-Gtk-General-Style.html#t%3AStyle" >Style</A ></TT > has a list of <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TT > derived from the current theme; those icon factories are consulted first when searching for an icon. If the theme doesn't set a particular icon, Gtk+ looks for the icon in a list of default icon factories, maintained by <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#v%3AiconFactoryAddDefault" >iconFactoryAddDefault</A ></TT > and <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#v%3AiconFactoryRemoveDefault" >iconFactoryRemoveDefault</A ></TT >. Applications with icons should add a default icon factory with their icons, which will allow themes to override the icons for the application. </P ><P >To display an icon, always use Graphics.UI.Gtk.General.Style.styleLookupIconSet on the widget that will display the icon, or the convenience function Graphics.UI.Gtk.Abstract.Widget.widgetRenderIcon. These functions take the theme into account when looking up the icon to use for a given stock ID. </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 > | +----IconFactory </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:IconFactory" ><A NAME="t%3AIconFactory" ></A ></A ><B >IconFactory</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#IconFactory" >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:IconFactory')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:IconFactory" 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-General-IconFactory.html#t%3AIconFactory" >IconFactory</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-General-IconFactory.html#t%3AIconFactory" >IconFactory</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-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactoryClass" >IconFactoryClass</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</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="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass" >GObjectClass</A > o => <A NAME="t:IconFactoryClass" ><A NAME="t%3AIconFactoryClass" ></A ></A ><B >IconFactoryClass</B > o </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#IconFactoryClass" >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:IconFactoryClass')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:IconFactoryClass" STYLE="display:block;" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactoryClass" >IconFactoryClass</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</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:castToIconFactory" ><A NAME="v%3AcastToIconFactory" ></A ></A ><B >castToIconFactory</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-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#castToIconFactory" >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:gTypeIconFactory" ><A NAME="v%3AgTypeIconFactory" ></A ></A ><B >gTypeIconFactory</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#gTypeIconFactory" >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:toIconFactory" ><A NAME="v%3AtoIconFactory" ></A ></A ><B >toIconFactory</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactoryClass" >IconFactoryClass</A > o => o -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-Types.html#toIconFactory" >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:iconFactoryNew" ><A NAME="v%3AiconFactoryNew" ></A ></A ><B >iconFactoryNew</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-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconFactoryNew" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Create a new IconFactory. </P ><UL ><LI > An application should create a new <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A ></TT > and add all needed icons. By calling <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#v%3AiconFactoryAddDefault" >iconFactoryAddDefault</A ></TT > these icons become available as stock objects and can easily be displayed by <TT ><A HREF="Graphics-UI-Gtk-Display-Image.html#t%3AImage" >Image</A ></TT >. Furthermore, a theme can override the icons defined by the application. </LI ></UL ></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:iconFactoryAdd" ><A NAME="v%3AiconFactoryAdd" ></A ></A ><B >iconFactoryAdd</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A > -> <A HREF="Graphics-UI-Gtk-General-StockItems.html#t%3AStockId" >StockId</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconFactoryAdd" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Add an IconSet to an IconFactory. </P ><P >In order to use the new stock object, the factory as to be added to the default factories by <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#v%3AiconFactoryAddDefault" >iconFactoryAddDefault</A ></TT >. </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconFactoryAddDefault" ><A NAME="v%3AiconFactoryAddDefault" ></A ></A ><B >iconFactoryAddDefault</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconFactoryAddDefault" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Add all entries of the IconFactory to the applications stock object database. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconFactoryLookup" ><A NAME="v%3AiconFactoryLookup" ></A ></A ><B >iconFactoryLookup</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</A > -> <A HREF="Graphics-UI-Gtk-General-StockItems.html#t%3AStockId" >StockId</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconFactoryLookup" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Looks up the stock id in the icon factory, returning an icon set if found, otherwise Nothing. </P ><P >For display to the user, you should use Graphics.UI.Gtk.General.Style.styleLookupIconSet on the Graphics.UI.Gtk.General.Style.Style for the widget that will display the icon, instead of using this function directly, so that themes are taken into account. </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconFactoryLookupDefault" ><A NAME="v%3AiconFactoryLookupDefault" ></A ></A ><B >iconFactoryLookupDefault</B > :: <A HREF="Graphics-UI-Gtk-General-StockItems.html#t%3AStockId" >StockId</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconFactoryLookupDefault" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Looks for an icon in the list of default icon factories. </P ><P >For display to the user, you should use Graphics.UI.Gtk.General.Style.styleLookupIconSet on the Graphics.UI.Gtk.General.Style.Style for the widget that will display the icon, instead of using this function directly, so that themes are taken into account. </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconFactoryRemoveDefault" ><A NAME="v%3AiconFactoryRemoveDefault" ></A ></A ><B >iconFactoryRemoveDefault</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconFactory" >IconFactory</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconFactoryRemoveDefault" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Remove an IconFactory from the application's stock database. </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:IconSet" ><A NAME="t%3AIconSet" ></A ></A ><B >IconSet</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#IconSet" >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:iconSetNew" ><A NAME="v%3AiconSetNew" ></A ></A ><B >iconSetNew</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-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSetNew" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Create a new IconSet. </P ><UL ><LI > Each icon in an application is contained in an <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT >. The <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT > contains several variants (<TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT >s) to accomodate for different sizes and states. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSetNewFromPixbuf" ><A NAME="v%3AiconSetNewFromPixbuf" ></A ></A ><B >iconSetNewFromPixbuf</B > :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</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-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSetNewFromPixbuf" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Creates a new <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT > with the given pixbuf as the default/fallback source image. If you don't add any additional <A HREF="IconSource.html" >IconSource</A > to the icon set, all variants of the icon will be created from the pixbuf, using scaling, pixelation, etc. as required to adjust the icon size or make the icon look insensitive/prelighted. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSetAddSource" ><A NAME="v%3AiconSetAddSource" ></A ></A ><B >iconSetAddSource</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSetAddSource" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Add an <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT > (an Icon with attributes) to an <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT >. </P ><UL ><LI > If an icon is looked up in the IconSet <TT >set</TT > the best matching IconSource will be taken. It is therefore advisable to add a default (wildcarded) icon, than can be used if no exact match is found. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSetRenderIcon" ><A NAME="v%3AiconSetRenderIcon" ></A ></A ><B >iconSetRenderIcon</B > :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AWidgetClass" >WidgetClass</A > widget => <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A > -> widget -> <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-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSetRenderIcon" >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:iconSetGetSizes" ><A NAME="v%3AiconSetGetSizes" ></A ></A ><B >iconSetGetSizes</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</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-General-IconFactory.html#t%3AIconSize" >IconSize</A >]</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSetGetSizes" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Obtains a list of icon sizes this icon set can render. </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:IconSource" ><A NAME="t%3AIconSource" ></A ></A ><B >IconSource</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#IconSource" >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:iconSourceNew" ><A NAME="v%3AiconSourceNew" ></A ></A ><B >iconSourceNew</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-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceNew" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Create a new IconSource. </P ><UL ><LI > An IconSource is a single image that is usually added to an IconSet. Next to the image it contains information about which state, text direction and size it should apply. </LI ></UL ></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:TextDirection" ><A NAME="t%3ATextDirection" ></A ></A ><B >TextDirection</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Enums.html#TextDirection" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:TextDirNone" ><A NAME="v%3ATextDirNone" ></A ></A ><B >TextDirNone</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:TextDirLtr" ><A NAME="v%3ATextDirLtr" ></A ></A ><B >TextDirLtr</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:TextDirRtl" ><A NAME="v%3ATextDirRtl" ></A ></A ><B >TextDirRtl</B ></TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:TextDirection')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:TextDirection" 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/Prelude.html#t%3AEnum" >Enum</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A ></TD ></TR ><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-General-IconFactory.html#t%3ATextDirection" >TextDirection</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Text-Show.html#t%3AShow" >Show</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</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:iconSourceGetDirection" ><A NAME="v%3AiconSourceGetDirection" ></A ></A ><B >iconSourceGetDirection</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceGetDirection" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Retrieve the <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A ></TT > of this IconSource. </P ><UL ><LI > <TT >Nothing</TT > is returned if no explicit direction was set. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceSetDirection" ><A NAME="v%3AiconSourceSetDirection" ></A ></A ><B >iconSourceSetDirection</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceSetDirection" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Mark this <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT > that it should only apply to the specified <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceResetDirection" ><A NAME="v%3AiconSourceResetDirection" ></A ></A ><B >iconSourceResetDirection</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceResetDirection" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Reset the specific <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3ATextDirection" >TextDirection</A ></TT > set with <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#v%3AiconSourceSetDirection" >iconSourceSetDirection</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceGetFilename" ><A NAME="v%3AiconSourceGetFilename" ></A ></A ><B >iconSourceGetFilename</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceGetFilename" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Retrieve the filename this IconSource was based on. </P ><UL ><LI > Returns <TT >Nothing</TT > if the IconSource was generated by a Pixbuf. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceSetFilename" ><A NAME="v%3AiconSourceSetFilename" ></A ></A ><B >iconSourceSetFilename</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AFilePath" >FilePath</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceSetFilename" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Load an icon picture from this filename. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceGetPixbuf" ><A NAME="v%3AiconSourceGetPixbuf" ></A ></A ><B >iconSourceGetPixbuf</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceGetPixbuf" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Retrieves the source pixbuf, or Nothing if none is set. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceSetPixbuf" ><A NAME="v%3AiconSourceSetPixbuf" ></A ></A ><B >iconSourceSetPixbuf</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf" >Pixbuf</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceSetPixbuf" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Sets a pixbuf to use as a base image when creating icon variants for <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSet" >IconSet</A ></TT >. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceGetSize" ><A NAME="v%3AiconSourceGetSize" ></A ></A ><B >iconSourceGetSize</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceGetSize" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Retrieve the <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TT > of this IconSource. </P ><UL ><LI > <TT >Nothing</TT > is returned if no explicit size was set (i.e. this <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT > matches all sizes). </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceSetSize" ><A NAME="v%3AiconSourceSetSize" ></A ></A ><B >iconSourceSetSize</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceSetSize" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Set this <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT > to a specific size. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceResetSize" ><A NAME="v%3AiconSourceResetSize" ></A ></A ><B >iconSourceResetSize</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceResetSize" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Reset the <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TT > of this <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT > so that is matches anything. </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:StateType" ><A NAME="t%3AStateType" ></A ></A ><B >StateType</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Enums.html#StateType" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="ndoc" >Widget states </TD ></TR ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:StateNormal" ><A NAME="v%3AStateNormal" ></A ></A ><B >StateNormal</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:StateActive" ><A NAME="v%3AStateActive" ></A ></A ><B >StateActive</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:StatePrelight" ><A NAME="v%3AStatePrelight" ></A ></A ><B >StatePrelight</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:StateSelected" ><A NAME="v%3AStateSelected" ></A ></A ><B >StateSelected</B ></TD ><TD CLASS="rdoc" ></TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:StateInsensitive" ><A NAME="v%3AStateInsensitive" ></A ></A ><B >StateInsensitive</B ></TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:StateType')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:StateType" 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/Prelude.html#t%3AEnum" >Enum</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</A ></TD ></TR ><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-General-IconFactory.html#t%3AStateType" >StateType</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Text-Show.html#t%3AShow" >Show</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</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:iconSourceGetState" ><A NAME="v%3AiconSourceGetState" ></A ></A ><B >iconSourceGetState</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceGetState" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Retrieve the <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</A ></TT > of this <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT >. </P ><UL ><LI > <TT >Nothing</TT > is returned if the <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT > matches all states. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceSetState" ><A NAME="v%3AiconSourceSetState" ></A ></A ><B >iconSourceSetState</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A > -> <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceSetState" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Mark this icon to be used only with this specific state. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSourceResetState" ><A NAME="v%3AiconSourceResetState" ></A ></A ><B >iconSourceResetState</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSourceResetState" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Reset the <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AStateType" >StateType</A ></TT > of this <TT ><A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSource" >IconSource</A ></TT > so that is matches anything. </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:IconSize" ><A NAME="t%3AIconSize" ></A ></A ><B >IconSize</B > </TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-Structs.html#IconSize" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="ndoc" ><P >The size of an icon in pixels. </P ><UL ><LI > This enumeration contains one case that is not exported and which is used when new sizes are registered using Graphics.UI.Gtk.General.IconFactory.iconSizeRegister. </LI ><LI > Applying <TT ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Text-Show.html#v%3Ashow" >show</A ></TT > to this type will reveal the name of the size that is registered with Gtk+. </LI ></UL ></TD ></TR ><TR ><TD CLASS="section4" >Constructors</TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0" ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeInvalid" ><A NAME="v%3AIconSizeInvalid" ></A ></A ><B >IconSizeInvalid</B ></TD ><TD CLASS="rdoc" >Don't scale but use any of the available sizes. </TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeMenu" ><A NAME="v%3AIconSizeMenu" ></A ></A ><B >IconSizeMenu</B ></TD ><TD CLASS="rdoc" >Icon size to use in next to menu items in drop-down menus. </TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeSmallToolbar" ><A NAME="v%3AIconSizeSmallToolbar" ></A ></A ><B >IconSizeSmallToolbar</B ></TD ><TD CLASS="rdoc" >Icon size for small toolbars. </TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeLargeToolbar" ><A NAME="v%3AIconSizeLargeToolbar" ></A ></A ><B >IconSizeLargeToolbar</B ></TD ><TD CLASS="rdoc" >Icon size for larger toolbars. </TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeButton" ><A NAME="v%3AIconSizeButton" ></A ></A ><B >IconSizeButton</B ></TD ><TD CLASS="rdoc" >Icon size for icons in buttons, next to the label. </TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeDnd" ><A NAME="v%3AIconSizeDnd" ></A ></A ><B >IconSizeDnd</B ></TD ><TD CLASS="rdoc" >Icon size for icons in drag-and-drop. </TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeDialog" ><A NAME="v%3AIconSizeDialog" ></A ></A ><B >IconSizeDialog</B ></TD ><TD CLASS="rdoc" >Icon size for icons next to dialog text. </TD ></TR ><TR ><TD CLASS="arg" ><A NAME="v:IconSizeUser" ><A NAME="v%3AIconSizeUser" ></A ></A ><B >IconSizeUser</B > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="rdoc" ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="section4" ><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:IconSize')" ALT="show/hide" > Instances</TD ></TR ><TR ><TD CLASS="body" ><DIV ID="i:IconSize" 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/Prelude.html#t%3AEnum" >Enum</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TD ></TR ><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-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Text-Show.html#t%3AShow" >Show</A > <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</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:iconSizeCheck" ><A NAME="v%3AiconSizeCheck" ></A ></A ><B >iconSizeCheck</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</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/base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSizeCheck" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Check if a given IconSize is registered. </P ><UL ><LI > Useful if your application expects a theme to install a set with a specific size. You can test if this actually happend and use another size if not. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSizeRegister" ><A NAME="v%3AiconSizeRegister" ></A ></A ><B >iconSizeRegister</B ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSizeRegister" >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-Char.html#t%3AString" >String</A ></TD ><TD CLASS="rdoc" >the new name of the size </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" >the width of the icon </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" >the height of the icon </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-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TD ><TD CLASS="rdoc" >the new icon size </TD ></TR ><TR ><TD CLASS="ndoc" COLSPAN="2" >Register a new IconSize. </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:iconSizeRegisterAlias" ><A NAME="v%3AiconSizeRegisterAlias" ></A ></A ><B >iconSizeRegisterAlias</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</A > -> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</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 ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSizeRegisterAlias" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Register an additional alias for a name. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSizeFromName" ><A NAME="v%3AiconSizeFromName" ></A ></A ><B >iconSizeFromName</B > :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</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-General-IconFactory.html#t%3AIconSize" >IconSize</A ></TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSizeFromName" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Lookup an IconSize by name. </P ><UL ><LI > This fixed value iconSizeInvalid is returned if the name was not found. </LI ></UL ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:iconSizeGetName" ><A NAME="v%3AiconSizeGetName" ></A ></A ><B >iconSizeGetName</B > :: <A HREF="Graphics-UI-Gtk-General-IconFactory.html#t%3AIconSize" >IconSize</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/base-4.2.0.2/Data-Maybe.html#t%3AMaybe" >Maybe</A > <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString" >String</A >)</TD ><TD CLASS="declbut" ><A HREF="src/Graphics-UI-Gtk-General-IconFactory.html#iconSizeGetName" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" ><P >Lookup the name of an IconSize. </P ><UL ><LI > Returns <TT >Nothing</TT > if the name was not found. </LI ></UL ></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 >