Sophie

Sophie

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

ghc-gtk-devel-0.12.0-4.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.UI.Gtk.Display.Image</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-UI-Gtk-Display-Image.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Display-Image.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gtk-0.12.0: Binding to the Gtk+ graphical user interface library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr></table><p class="caption">Graphics.UI.Gtk.Display.Image</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail
</a></li><li><a href="#g:2">Class Hierarchy
</a></li><li><a href="#g:3">Types
</a></li><li><a href="#g:4">Constructors
</a></li><li><a href="#g:5">Methods
</a></li><li><a href="#g:6">Icon Sizes
</a></li><li><a href="#g:7">Attributes
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A widget displaying an image
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:Image">Image</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Misc.html#t:MiscClass">MiscClass</a> o =&gt; <a href="#t:ImageClass">ImageClass</a> o </li><li class="src short"><a href="#v:castToImage">castToImage</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><a href="#v:gTypeImage">gTypeImage</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toImage">toImage</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageClass">ImageClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:ImageType">ImageType</a> <ul class="subs"><li>= <a href="#v:ImageEmpty">ImageEmpty</a>  </li><li>| <a href="#v:ImagePixmap">ImagePixmap</a>  </li><li>| <a href="#v:ImageImage">ImageImage</a>  </li><li>| <a href="#v:ImagePixbuf">ImagePixbuf</a>  </li><li>| <a href="#v:ImageStock">ImageStock</a>  </li><li>| <a href="#v:ImageIconSet">ImageIconSet</a>  </li><li>| <a href="#v:ImageAnimation">ImageAnimation</a>  </li><li>| <a href="#v:ImageIconName">ImageIconName</a>  </li><li>| <a href="#v:ImageGicon">ImageGicon</a>  </li></ul></li><li class="src short"><a href="#v:imageNewFromFile">imageNewFromFile</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><a href="#v:imageNewFromPixbuf">imageNewFromPixbuf</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><a href="#v:imageNewFromAnimation">imageNewFromAnimation</a> :: <a href="Graphics-UI-Gtk-Gdk-PixbufAnimation.html#t:PixbufAnimationClass">PixbufAnimationClass</a> animation =&gt; animation -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><a href="#v:imageNewFromStock">imageNewFromStock</a> :: <a href="Graphics-UI-Gtk-General-StockItems.html#t:StockId">StockId</a> -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><a href="#v:imageNew">imageNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><a href="#v:imageNewFromIconName">imageNewFromIconName</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></li><li class="src short"><a href="#v:imageGetPixbuf">imageGetPixbuf</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></li><li class="src short"><a href="#v:imageSetFromPixbuf">imageSetFromPixbuf</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:imageSetFromAnimation">imageSetFromAnimation</a> :: <a href="Graphics-UI-Gtk-Gdk-PixbufAnimation.html#t:PixbufAnimationClass">PixbufAnimationClass</a> animation =&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; animation -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:imageSetFromFile">imageSetFromFile</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:imageSetFromStock">imageSetFromStock</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-UI-Gtk-General-StockItems.html#t:StockId">StockId</a> -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:imageSetFromIconName">imageSetFromIconName</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:imageSetPixelSize">imageSetPixelSize</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:imageGetPixelSize">imageGetPixelSize</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:imageClear">imageClear</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:IconSize">IconSize</a> <ul class="subs"><li>= <a href="#v:IconSizeInvalid">IconSizeInvalid</a>  </li><li>| <a href="#v:IconSizeMenu">IconSizeMenu</a>  </li><li>| <a href="#v:IconSizeSmallToolbar">IconSizeSmallToolbar</a>  </li><li>| <a href="#v:IconSizeLargeToolbar">IconSizeLargeToolbar</a>  </li><li>| <a href="#v:IconSizeButton">IconSizeButton</a>  </li><li>| <a href="#v:IconSizeDnd">IconSizeDnd</a>  </li><li>| <a href="#v:IconSizeDialog">IconSizeDialog</a>  </li><li>| <a href="#v:IconSizeUser">IconSizeUser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>  </li></ul></li><li class="src short"><a href="#v:imagePixbuf">imagePixbuf</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:PixbufClass">PixbufClass</a> pixbuf =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a> pixbuf</li><li class="src short"><a href="#v:imagePixmap">imagePixmap</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:PixmapClass">PixmapClass</a> pixmap =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:Pixmap">Pixmap</a> pixmap</li><li class="src short"><a href="#v:imageAnimation">imageAnimation</a> :: (<a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:PixbufClass">PixbufClass</a> pixbuf, <a href="Graphics-UI-Gtk-Gdk-PixbufAnimation.html#t:PixbufAnimationClass">PixbufAnimationClass</a> animation) =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> animation pixbuf</li><li class="src short"><a href="#v:imageImage">imageImage</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageClass">ImageClass</a> image =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> image</li><li class="src short"><a href="#v:imageMask">imageMask</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:PixmapClass">PixmapClass</a> pixmap =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:Pixmap">Pixmap</a> pixmap</li><li class="src short"><a href="#v:imageFile">imageFile</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:imageStock">imageStock</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:imageIconSize">imageIconSize</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:imagePixelSize">imagePixelSize</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:imageIconName">imageIconName</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:imageStorageType">imageStorageType</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageType">ImageType</a></li></ul></div><div id="interface"><h1 id="g:1">Detail
</h1><div class="doc"><p>The <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> widget displays an image. Various kinds of object can be
 displayed as an image; most typically, you would load a <code><a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></code> (&quot;pixel
 buffer&quot;) from a file, and then display that. There's a convenience function
 to do this, <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageNewFromFile">imageNewFromFile</a></code>, used as follows: If the file isn't loaded
 successfully, the image will contain a &quot;broken image&quot; icon similar to that
 used in many web browsers. If you want to handle errors in loading the file
 yourself, for example by displaying an error message, then load the image
 with <code>Graphics.UI.Gtk.Gdk.Pixbuf.pixbufNewFromFile</code>, then create the
 <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> with <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageNewFromPixbuf">imageNewFromPixbuf</a></code>.
</p><pre> image &lt;- imageNewFromFile &quot;myfile.png&quot;
</pre><p>The image file may contain an animation, if so the <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> will display
 an animation (<code><a href="Graphics-UI-Gtk-Gdk-PixbufAnimation.html#t:PixbufAnimation">PixbufAnimation</a></code>) instead of a static image.
</p><p><code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> is a subclass of <code><a href="Graphics-UI-Gtk-Abstract-Misc.html#t:Misc">Misc</a></code>, which implies that you can align it
 (center, left, right) and add padding to it, using <code><a href="Graphics-UI-Gtk-Abstract-Misc.html#t:Misc">Misc</a></code> methods.
</p><p><code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> is a &quot;no window&quot; widget (has no <code><a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindow">DrawWindow</a></code> of its own), so by
 default does not receive events. If you want to receive events on the image,
 such as button clicks, place the image inside a <code><a href="Graphics-UI-Gtk-Misc-EventBox.html#t:EventBox">EventBox</a></code>, then connect to
 the event signals on the event box.
</p><p>When handling events on the event box, keep in mind that coordinates in
 the image may be different from event box coordinates due to the alignment
 and padding settings on the image (see <code><a href="Graphics-UI-Gtk-Abstract-Misc.html#t:Misc">Misc</a></code>). The simplest way to solve
 this is to set the alignment to 0.0 (left/top), and set the padding to
 zero. Then the origin of the image will be the same as the origin of the
 event box.
</p><p>Sometimes an application will want to avoid depending on external data
 files, such as image files. Gtk+ comes with a program to avoid this, called
 gdk-pixbuf-csource. This program allows you to convert an image into a C
 variable declaration, which can then be loaded into a <code><a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></code> using
 <code>Graphics.UI.Gtk.Gdk.Pixbuf.pixbufNewFromInline</code>.
</p></div><h1 id="g:2">Class Hierarchy
</h1><div class="doc"><pre>
 | <code><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObject">GObject</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Object.html#t:Object">Object</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Misc.html#t:Misc">Misc</a></code>
 | +----Image
</pre></div><h1 id="g:3">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Image" class="def">Image</a>  <a href="src/Graphics-UI-Gtk-Types.html#Image" class="link">Source</a></p><div class="subs instances"><p id="control.i:Image" class="caption collapser" onclick="toggleSection('i:Image')">Instances</p><div id="section.i:Image" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Display-Image.html#t:ImageClass">ImageClass</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Misc.html#t:MiscClass">MiscClass</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Object.html#t:ObjectClass">ObjectClass</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Misc.html#t:MiscClass">MiscClass</a> o =&gt; <a name="t:ImageClass" class="def">ImageClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#ImageClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:ImageClass" class="caption collapser" onclick="toggleSection('i:ImageClass')">Instances</p><div id="section.i:ImageClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Display-Image.html#t:ImageClass">ImageClass</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToImage" class="def">castToImage</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a><a href="src/Graphics-UI-Gtk-Types.html#castToImage" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeImage" class="def">gTypeImage</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeImage" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toImage" class="def">toImage</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageClass">ImageClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a><a href="src/Graphics-UI-Gtk-Types.html#toImage" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ImageType" class="def">ImageType</a>  <a href="src/Graphics-UI-Gtk-Display-Image.html#ImageType" class="link">Source</a></p><div class="doc"><p>Describes the image data representation used by a <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code>. If you want to
 get the image from the widget, you can only get the currently-stored
 representation. e.g. if the <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageStorageType">imageStorageType</a></code> is <code><a href="Graphics-UI-Gtk-Display-Image.html#v:ImagePixbuf">ImagePixbuf</a></code>,
 then you can call <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageGetPixbuf">imageGetPixbuf</a></code> but not <code>imageGetStock</code>. For empty
 images, you can request any storage type (call any of the <a href="get.html">get</a> functions),
 but they will all return <code>Nothing</code>.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ImageEmpty" class="def">ImageEmpty</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImagePixmap" class="def">ImagePixmap</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImageImage" class="def">ImageImage</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImagePixbuf" class="def">ImagePixbuf</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImageStock" class="def">ImageStock</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImageIconSet" class="def">ImageIconSet</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImageAnimation" class="def">ImageAnimation</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImageIconName" class="def">ImageIconName</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ImageGicon" class="def">ImageGicon</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:ImageType" class="caption collapser" onclick="toggleSection('i:ImageType')">Instances</p><div id="section.i:ImageType" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageType">ImageType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageType">ImageType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageType">ImageType</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:4">Constructors
</h1><div class="top"><p class="src"><a name="v:imageNewFromFile" class="def">imageNewFromFile</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageNewFromFile" class="link">Source</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> displaying the file <code>filename</code>. If the file isn't
 found or can't be loaded, the resulting <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> will display a &quot;broken
 image&quot; icon.
</p><p>If the file contains an animation, the image will contain an animation.
</p><p>If you need to detect failures to load the file, use
 <code>Graphics.UI.Gtk.Gdk.Pixbuf.pixbufNewFromFile</code>
 to load the file yourself, then create the <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> from the pixbuf. (Or for
 animations, use
 <code>Graphics.UI.Gtk.Gdk.Pixbuf.pixbufAnimationNewFromFile</code>).
</p><p>The storage type (<code>imageGetStorageType</code>) of the returned image is not
 defined, it will be whatever is appropriate for displaying the file.
</p></div></div><div class="top"><p class="src"><a name="v:imageNewFromPixbuf" class="def">imageNewFromPixbuf</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageNewFromPixbuf" class="link">Source</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> displaying a <code><a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></code>.
</p><p>Note that this function just creates an <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> from the pixbuf. The
 <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> created will not react to state changes. Should you want that, you
 should use <code>imageNewFromIconSet</code>.
</p></div></div><div class="top"><p class="src"><a name="v:imageNewFromAnimation" class="def">imageNewFromAnimation</a> :: <a href="Graphics-UI-Gtk-Gdk-PixbufAnimation.html#t:PixbufAnimationClass">PixbufAnimationClass</a> animation =&gt; animation -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageNewFromAnimation" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:imageNewFromStock" class="def">imageNewFromStock</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageNewFromStock" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-General-StockItems.html#t:StockId">StockId</a></td><td class="doc"><p><code>stockId</code> - a stock icon name
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a></td><td class="doc"><p><code>size</code> - a stock icon size
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> displaying a stock icon. If the stock icon name isn't
 known, the image will be empty.
</p></div></div><div class="top"><p class="src"><a name="v:imageNew" class="def">imageNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageNew" class="link">Source</a></p><div class="doc"><p>Creates a new empty <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> widget.
</p></div></div><div class="top"><p class="src"><a name="v:imageNewFromIconName" class="def">imageNewFromIconName</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageNewFromIconName" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>iconName</code> - an icon name
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a></td><td class="doc"><p><code>size</code> - a stock icon size
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> displaying an icon from the current icon theme. If the
 icon name isn't known, a &quot;broken image&quot; icon will be displayed instead. If
 the current icon theme is changed, the icon will be updated appropriately.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><h1 id="g:5">Methods
</h1><div class="top"><p class="src"><a name="v:imageGetPixbuf" class="def">imageGetPixbuf</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageGetPixbuf" class="link">Source</a></p><div class="doc"><p>Gets the <code><a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></code> being displayed by the <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code>. The storage type of the
 image must be <code><a href="Graphics-UI-Gtk-Display-Image.html#v:ImageEmpty">ImageEmpty</a></code> or <code><a href="Graphics-UI-Gtk-Display-Image.html#v:ImagePixbuf">ImagePixbuf</a></code> (see <code>imageGetStorageType</code>).
</p></div></div><div class="top"><p class="src"><a name="v:imageSetFromPixbuf" class="def">imageSetFromPixbuf</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageSetFromPixbuf" class="link">Source</a></p><div class="doc"><p>Overwrite the current content of the <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> with a new <code><a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:imageSetFromAnimation" class="def">imageSetFromAnimation</a> :: <a href="Graphics-UI-Gtk-Gdk-PixbufAnimation.html#t:PixbufAnimationClass">PixbufAnimationClass</a> animation =&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; animation -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageSetFromAnimation" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:imageSetFromFile" class="def">imageSetFromFile</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageSetFromFile" class="link">Source</a></p><div class="doc"><p>See <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageNewFromFile">imageNewFromFile</a></code> for details.
</p></div></div><div class="top"><p class="src"><a name="v:imageSetFromStock" class="def">imageSetFromStock</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageSetFromStock" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-General-StockItems.html#t:StockId">StockId</a></td><td class="doc"><p><code>stockId</code> - a stock icon name
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a></td><td class="doc"><p><code>size</code> - a stock icon size
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>See <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageNewFromStock">imageNewFromStock</a></code> for details.
</p></div></div><div class="top"><p class="src"><a name="v:imageSetFromIconName" class="def">imageSetFromIconName</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageSetFromIconName" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>iconName</code> - an icon name
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a></td><td class="doc"><p><code>size</code> - an icon size
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>See <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageNewFromIconName">imageNewFromIconName</a></code> for details.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:imageSetPixelSize" class="def">imageSetPixelSize</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageSetPixelSize" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>pixelSize</code> - the new pixel size
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the pixel size to use for named icons. If the pixel size is set to a
 <code>value /= -1</code>, it is used instead of the icon size set by
 <code><a href="Graphics-UI-Gtk-Display-Image.html#v:imageSetFromIconName">imageSetFromIconName</a></code>.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:imageGetPixelSize" class="def">imageGetPixelSize</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageGetPixelSize" class="link">Source</a></p><div class="doc"><p>Gets the pixel size used for named icons.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:imageClear" class="def">imageClear</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageClear" class="link">Source</a></p><div class="doc"><p>Resets the image to be empty.
</p><ul><li> Available since Gtk+ version 2.8
</li></ul></div></div><h1 id="g:6">Icon Sizes
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:IconSize" class="def">IconSize</a>  <a href="src/Graphics-UI-Gtk-General-Structs.html#IconSize" class="link">Source</a></p><div class="doc"><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
   <code>Graphics.UI.Gtk.General.IconFactory.iconSizeRegister</code>.
</li><li> Applying <code><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#v:show">show</a></code> to this type will reveal the name of the size
   that is registered with Gtk+.
</li></ul></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:IconSizeInvalid" class="def">IconSizeInvalid</a></td><td class="doc"><p>Don't scale but use any of the available sizes.
</p></td></tr><tr><td class="src"><a name="v:IconSizeMenu" class="def">IconSizeMenu</a></td><td class="doc"><p>Icon size to use in next to menu items in drop-down menus.
</p></td></tr><tr><td class="src"><a name="v:IconSizeSmallToolbar" class="def">IconSizeSmallToolbar</a></td><td class="doc"><p>Icon size for small toolbars.
</p></td></tr><tr><td class="src"><a name="v:IconSizeLargeToolbar" class="def">IconSizeLargeToolbar</a></td><td class="doc"><p>Icon size for larger toolbars.
</p></td></tr><tr><td class="src"><a name="v:IconSizeButton" class="def">IconSizeButton</a></td><td class="doc"><p>Icon size for icons in buttons, next to the label.
</p></td></tr><tr><td class="src"><a name="v:IconSizeDnd" class="def">IconSizeDnd</a></td><td class="doc"><p>Icon size for icons in drag-and-drop.
</p></td></tr><tr><td class="src"><a name="v:IconSizeDialog" class="def">IconSizeDialog</a></td><td class="doc"><p>Icon size for icons next to dialog text.
</p></td></tr><tr><td class="src"><a name="v:IconSizeUser" class="def">IconSizeUser</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:IconSize" class="caption collapser" onclick="toggleSection('i:IconSize')">Instances</p><div id="section.i:IconSize" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:IconSize">IconSize</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:7">Attributes
</h1><div class="top"><p class="src"><a name="v:imagePixbuf" class="def">imagePixbuf</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:PixbufClass">PixbufClass</a> pixbuf =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a> pixbuf<a href="src/Graphics-UI-Gtk-Display-Image.html#imagePixbuf" class="link">Source</a></p><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:Pixbuf">Pixbuf</a></code> to display.
</p></div></div><div class="top"><p class="src"><a name="v:imagePixmap" class="def">imagePixmap</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:PixmapClass">PixmapClass</a> pixmap =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:Pixmap">Pixmap</a> pixmap<a href="src/Graphics-UI-Gtk-Display-Image.html#imagePixmap" class="link">Source</a></p><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:Pixmap">Pixmap</a></code> to display.
</p></div></div><div class="top"><p class="src"><a name="v:imageAnimation" class="def">imageAnimation</a> :: (<a href="Graphics-UI-Gtk-Gdk-Pixbuf.html#t:PixbufClass">PixbufClass</a> pixbuf, <a href="Graphics-UI-Gtk-Gdk-PixbufAnimation.html#t:PixbufAnimationClass">PixbufAnimationClass</a> animation) =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> animation pixbuf<a href="src/Graphics-UI-Gtk-Display-Image.html#imageAnimation" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:imageImage" class="def">imageImage</a> :: <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageClass">ImageClass</a> image =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> image<a href="src/Graphics-UI-Gtk-Display-Image.html#imageImage" class="link">Source</a></p><div class="doc"><p>A <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> to display.
</p></div></div><div class="top"><p class="src"><a name="v:imageMask" class="def">imageMask</a> :: <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:PixmapClass">PixmapClass</a> pixmap =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:Pixmap">Pixmap</a> pixmap<a href="src/Graphics-UI-Gtk-Display-Image.html#imageMask" class="link">Source</a></p><div class="doc"><p>Mask bitmap to use with <code><a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a></code> or <code><a href="Graphics-UI-Gtk-Gdk-Pixmap.html#t:Pixmap">Pixmap</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:imageFile" class="def">imageFile</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageFile" class="link">Source</a></p><div class="doc"><p>Filename to load and display.
</p><p>Default value: &quot;&quot;
</p></div></div><div class="top"><p class="src"><a name="v:imageStock" class="def">imageStock</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageStock" class="link">Source</a></p><div class="doc"><p>Stock ID for a stock image to display.
</p><p>Default value: &quot;&quot;
</p></div></div><div class="top"><p class="src"><a name="v:imageIconSize" class="def">imageIconSize</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageIconSize" class="link">Source</a></p><div class="doc"><p>Symbolic size to use for stock icon, icon set or named icon.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 4
</p></div></div><div class="top"><p class="src"><a name="v:imagePixelSize" class="def">imagePixelSize</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imagePixelSize" class="link">Source</a></p><div class="doc"><p>The pixel-size property can be used to specify a fixed size overriding
 the icon-size property for images of type <code><a href="Graphics-UI-Gtk-Display-Image.html#v:ImageIconName">ImageIconName</a></code>.
</p><p>Allowed values: &gt;= -1
</p><p>Default value: -1
</p></div></div><div class="top"><p class="src"><a name="v:imageIconName" class="def">imageIconName</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageIconName" class="link">Source</a></p><div class="doc"><p>The name of the icon in the icon theme. If the icon theme is changed, the
 image will be updated automatically.
</p><p>Default value: &quot;&quot;
</p></div></div><div class="top"><p class="src"><a name="v:imageStorageType" class="def">imageStorageType</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:Image">Image</a> <a href="Graphics-UI-Gtk-Display-Image.html#t:ImageType">ImageType</a><a href="src/Graphics-UI-Gtk-Display-Image.html#imageStorageType" class="link">Source</a></p><div class="doc"><p>The representation being used for image data.
</p><p>Default value: <code><a href="Graphics-UI-Gtk-Display-Image.html#v:ImageEmpty">ImageEmpty</a></code>
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>