Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 22e237efd6851989a23adf3360bb53d0 > files > 124

gtkmm2.4-doc-2.20.3-1mdv2010.1.x86_64.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/xhtml;charset=UTF-8"/>
<title>gtkmm: Gdk::PixbufLoader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGdk.html">Gdk</a>::<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a>
  </div>
</div>
<div class="contents">
<h1>Gdk::PixbufLoader Class Reference</h1><!-- doxytag: class="Gdk::PixbufLoader" --><!-- doxytag: inherits="Glib::Object" -->
<p>Inherits <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gdk::PixbufLoader:</div>
<div class="dynsection">
<div class="center"><img src="classGdk_1_1PixbufLoader__coll__graph.png" border="0" usemap="#Gdk_1_1PixbufLoader_coll__map" alt="Collaboration graph"/></div>
<map name="Gdk_1_1PixbufLoader_coll__map" id="Gdk_1_1PixbufLoader_coll__map">
<area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="24,160,115,189"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="9,83,129,112"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="16,5,123,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGdk_1_1PixbufLoader-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#ad84541e46f4e048fa8b8bc7eb2774dc0">~PixbufLoader</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkPixbufLoader*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a68a692fc8f18fac87659cb9ce4219df6">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a68a692fc8f18fac87659cb9ce4219df6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GdkPixbufLoader*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a99541d054d563108b0bfe05c31b870c0">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a99541d054d563108b0bfe05c31b870c0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkPixbufLoader*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#ab86dda7f88d82cf1374617ad978466c7">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#ab86dda7f88d82cf1374617ad978466c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a295cd5abb9e14975a6836f1bb568db58">set_size</a> (int width, int height)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a90ce41040208597527cf2251631aad45">write</a> (const guint8* buf, gsize <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01162.html#ga81511cd7112567fa262b05bb22e69874">count</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Causes the pixbuf loader to parse the next <em>count</em> bytes of an image. <a href="#a90ce41040208597527cf2251631aad45"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a9512407e3feac5405a6ac6e12ef23bfd">close</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Informs a pixbuf loader that no further writes with <a class="el" href="classGdk_1_1PixbufLoader.html#a90ce41040208597527cf2251631aad45" title="Causes the pixbuf loader to parse the next count bytes of an image.">PixbufLoader::write()</a> will occur, so that it can free its internal loading structures. <a href="#a9512407e3feac5405a6ac6e12ef23bfd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a4aa818981d7690da1fd23a10f5cde21a">get_pixbuf</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><br class="typebreak"/>
&lt; <a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a9e69e076ec80ee35b0acaaf6824a3570">get_animation</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGdk_1_1PixbufFormat.html">PixbufFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#ab1785b9798362416ffb03ce02dd267d5">get_format</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a511c0929d1e481cd98faf77bd2d579c6">signal_area_prepared</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size. <a href="#a511c0929d1e481cd98faf77bd2d579c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy4.html">Glib::SignalProxy4</a>&lt; void, int, <br class="typebreak"/>
int, int, int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#ad816c3154d7abe8519633aa2727eb5ba">signal_area_updated</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This signal is emitted when a significant area of the image being loaded has been updated. <a href="#ad816c3154d7abe8519633aa2727eb5ba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a2d72e897acfb0c56eaaf72f046db134f">signal_closed</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This signal is emitted when <a class="el" href="classGdk_1_1PixbufLoader.html#a9512407e3feac5405a6ac6e12ef23bfd" title="Informs a pixbuf loader that no further writes with PixbufLoader::write() will occur...">close()</a> is called. <a href="#a2d72e897acfb0c56eaaf72f046db134f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy2.html">Glib::SignalProxy2</a>&lt; void, int, <br class="typebreak"/>
int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a26f567bc1828c59a8b8a710115e86b2f">signal_size_prepared</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This signal is emitted when the pixbuf loader has been fed the initial amount of data that is required to figure out the size of the image that it will create. <a href="#a26f567bc1828c59a8b8a710115e86b2f"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#ae671a5fd6f63039b761f5d78475a3f92">create</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new pixbuf loader object. <a href="#ae671a5fd6f63039b761f5d78475a3f92"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a5d0a2be7c289b8b83e3ee9c8570b37ff">create</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; image_type, bool mime_type=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a pixbuf loader object for a specific image type. <a href="#a5d0a2be7c289b8b83e3ee9c8570b37ff"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a373c249cdae4df4563736169f68915f7">PixbufLoader</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a pixbuf loader object. <a href="#a373c249cdae4df4563736169f68915f7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a8bb93227a052da0b9db5c51372a75351">PixbufLoader</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; image_type, bool mime_type=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a pixbuf loader object for a specific image type. <a href="#a8bb93227a052da0b9db5c51372a75351"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a291dd42961d273faf6589f7400e30c29">on_area_prepared</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#a16df36c7bc304ff980973924133342e7">on_area_updated</a> (int x, int y, int width, int height)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#ade3595deb97cad8b7c569f9a66bfe03f">on_closed</a> ()</td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1PixbufLoader.html">Gdk::PixbufLoader</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1PixbufLoader.html#ab9193291650c2cca2b9367be62217339">wrap</a> (GdkPixbufLoader* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#ab9193291650c2cca2b9367be62217339"></a><br/></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad84541e46f4e048fa8b8bc7eb2774dc0"></a><!-- doxytag: member="Gdk::PixbufLoader::~PixbufLoader" ref="ad84541e46f4e048fa8b8bc7eb2774dc0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gdk::PixbufLoader::~PixbufLoader </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a373c249cdae4df4563736169f68915f7"></a><!-- doxytag: member="Gdk::PixbufLoader::PixbufLoader" ref="a373c249cdae4df4563736169f68915f7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::PixbufLoader::PixbufLoader </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a pixbuf loader object. </p>

</div>
</div>
<a class="anchor" id="a8bb93227a052da0b9db5c51372a75351"></a><!-- doxytag: member="Gdk::PixbufLoader::PixbufLoader" ref="a8bb93227a052da0b9db5c51372a75351" args="(const Glib::ustring &amp;image_type, bool mime_type=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::PixbufLoader::PixbufLoader </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>image_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>mime_type</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a pixbuf loader object for a specific image type. </p>
<p>Constructs a new pixbuf loader object that always attempts to parse image data as if it were an image of type <em>image_type</em>, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.</p>
<p>The image_type can be one of the types returned by <a class="el" href="classGdk_1_1Pixbuf.html#a97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>, or a MIME type.</p>
<p>Common MIME Types are listed here <a href="http://www.iana.org/assignments/media-types/">http://www.iana.org/assignments/media-types/</a> and here: <a href="http://www.freedesktop.org/Software/shared-mime-info">http://www.freedesktop.org/Software/shared-mime-info</a></p>
<p>The list of non-mime-type image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call <a class="el" href="classGdk_1_1PixbufFormat.html#a9dcb4ec5ad2b4ad663aadbde1aa42e4e">PixbufFormat::get_name()</a> on each of the PixbufFormats returned by <a class="el" href="classGdk_1_1Pixbuf.html#a97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>image_type</em>&#160;</td><td>Name of the image format to be loaded with the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mime_type</em>&#160;</td><td>If this is true then the image_type is a MIME type. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGdk_1_1PixbufError.html" title="Exception class for Gdk::Pixbuf errors.">Gdk::PixbufError</a></em>&#160;</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9512407e3feac5405a6ac6e12ef23bfd"></a><!-- doxytag: member="Gdk::PixbufLoader::close" ref="a9512407e3feac5405a6ac6e12ef23bfd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::PixbufLoader::close </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Informs a pixbuf loader that no further writes with <a class="el" href="classGdk_1_1PixbufLoader.html#a90ce41040208597527cf2251631aad45" title="Causes the pixbuf loader to parse the next count bytes of an image.">PixbufLoader::write()</a> will occur, so that it can free its internal loading structures. </p>
<p>Also, tries to parse any data that hasn't yet been parsed; if the remaining data is partial or corrupt, an exception will be thrown. If you're just cancelling a load rather than expecting it to be finished, writing an empty <code>catch()</code> block to ignore errors is reasonable. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGdk_1_1PixbufError.html" title="Exception class for Gdk::Pixbuf errors.">Gdk::PixbufError</a></em>&#160;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1FileError.html">Glib::FileError</a></em>&#160;</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5d0a2be7c289b8b83e3ee9c8570b37ff"></a><!-- doxytag: member="Gdk::PixbufLoader::create" ref="a5d0a2be7c289b8b83e3ee9c8570b37ff" args="(const Glib::ustring &amp;image_type, bool mime_type=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a>&gt; Gdk::PixbufLoader::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>image_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>mime_type</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a pixbuf loader object for a specific image type. </p>
<p>Constructs a new pixbuf loader object that always attempts to parse image data as if it were an image of type <em>image_type</em>, instead of identifying the type automatically. Useful if you want an error if the image isn't the expected type, for loading image formats that can't be reliably identified by looking at the data, or if the user manually forces a specific type.</p>
<p>The image_type can be one of the types returned by <a class="el" href="classGdk_1_1Pixbuf.html#a97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>, or a MIME type.</p>
<p>Common MIME Types are listed here <a href="http://www.iana.org/assignments/media-types/">http://www.iana.org/assignments/media-types/</a> and here: <a href="http://www.freedesktop.org/Software/shared-mime-info">http://www.freedesktop.org/Software/shared-mime-info</a></p>
<p>The list of non-mime-type image formats depends on what image loaders are installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are among the supported formats. To obtain the full list of supported image formats, call <a class="el" href="classGdk_1_1PixbufFormat.html#a9dcb4ec5ad2b4ad663aadbde1aa42e4e">PixbufFormat::get_name()</a> on each of the PixbufFormats returned by <a class="el" href="classGdk_1_1Pixbuf.html#a97b60f81707d0e61f55fa83596a8c1f9">Gdk::Pixbuf::get_formats()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>image_type</em>&#160;</td><td>Name of the image format to be loaded with the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>mime_type</em>&#160;</td><td>If this is true then the image_type is a MIME type. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGdk_1_1PixbufError.html" title="Exception class for Gdk::Pixbuf errors.">Gdk::PixbufError</a></em>&#160;</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae671a5fd6f63039b761f5d78475a3f92"></a><!-- doxytag: member="Gdk::PixbufLoader::create" ref="ae671a5fd6f63039b761f5d78475a3f92" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufLoader.html">PixbufLoader</a>&gt; Gdk::PixbufLoader::create </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new pixbuf loader object. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A newly-created pixbuf loader. </dd></dl>

</div>
</div>
<a class="anchor" id="a9e69e076ec80ee35b0acaaf6824a3570"></a><!-- doxytag: member="Gdk::PixbufLoader::get_animation" ref="a9e69e076ec80ee35b0acaaf6824a3570" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1PixbufAnimation.html">Gdk::PixbufAnimation</a>&gt; Gdk::PixbufLoader::get_animation </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab1785b9798362416ffb03ce02dd267d5"></a><!-- doxytag: member="Gdk::PixbufLoader::get_format" ref="ab1785b9798362416ffb03ce02dd267d5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGdk_1_1PixbufFormat.html">PixbufFormat</a> Gdk::PixbufLoader::get_format </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4aa818981d7690da1fd23a10f5cde21a"></a><!-- doxytag: member="Gdk::PixbufLoader::get_pixbuf" ref="a4aa818981d7690da1fd23a10f5cde21a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>&gt; Gdk::PixbufLoader::get_pixbuf </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a99541d054d563108b0bfe05c31b870c0"></a><!-- doxytag: member="Gdk::PixbufLoader::gobj" ref="a99541d054d563108b0bfe05c31b870c0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdkPixbufLoader* Gdk::PixbufLoader::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="a68a692fc8f18fac87659cb9ce4219df6"></a><!-- doxytag: member="Gdk::PixbufLoader::gobj" ref="a68a692fc8f18fac87659cb9ce4219df6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkPixbufLoader* Gdk::PixbufLoader::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="ab86dda7f88d82cf1374617ad978466c7"></a><!-- doxytag: member="Gdk::PixbufLoader::gobj_copy" ref="ab86dda7f88d82cf1374617ad978466c7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkPixbufLoader* Gdk::PixbufLoader::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="a291dd42961d273faf6589f7400e30c29"></a><!-- doxytag: member="Gdk::PixbufLoader::on_area_prepared" ref="a291dd42961d273faf6589f7400e30c29" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gdk::PixbufLoader::on_area_prepared </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a16df36c7bc304ff980973924133342e7"></a><!-- doxytag: member="Gdk::PixbufLoader::on_area_updated" ref="a16df36c7bc304ff980973924133342e7" args="(int x, int y, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gdk::PixbufLoader::on_area_updated </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>height</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ade3595deb97cad8b7c569f9a66bfe03f"></a><!-- doxytag: member="Gdk::PixbufLoader::on_closed" ref="ade3595deb97cad8b7c569f9a66bfe03f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Gdk::PixbufLoader::on_closed </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a295cd5abb9e14975a6836f1bb568db58"></a><!-- doxytag: member="Gdk::PixbufLoader::set_size" ref="a295cd5abb9e14975a6836f1bb568db58" args="(int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::PixbufLoader::set_size </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>height</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a511c0929d1e481cd98faf77bd2d579c6"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_area_prepared" ref="a511c0929d1e481cd98faf77bd2d579c6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt; Gdk::PixbufLoader::signal_area_prepared </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This signal is emitted when the pixbuf loader has allocated the pixbuf in the desired size. </p>
<p>After this signal is emitted, applications can call <a class="el" href="classGdk_1_1PixbufLoader.html#a4aa818981d7690da1fd23a10f5cde21a">get_pixbuf()</a> to fetch the partially-loaded pixbuf.</p>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_area_prepared()</code> </dd></dl>

</div>
</div>
<a class="anchor" id="ad816c3154d7abe8519633aa2727eb5ba"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_area_updated" ref="ad816c3154d7abe8519633aa2727eb5ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy4.html">Glib::SignalProxy4</a>&lt; void,int,int,int,int &gt; Gdk::PixbufLoader::signal_area_updated </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This signal is emitted when a significant area of the image being loaded has been updated. </p>
<p>Normally it means that a complete scanline has been read in, but it could be a different area as well. Applications can use this signal to know when to repaint areas of an image that is being loaded.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>X</em>&#160;</td><td>offset of upper-left corner of the updated area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&#160;</td><td>Y offset of upper-left corner of the updated area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width</em>&#160;</td><td>Width of updated area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&#160;</td><td>Height of updated area.</td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_area_updated(int x, int y, int width, int height)</code> </dd></dl>

</div>
</div>
<a class="anchor" id="a2d72e897acfb0c56eaaf72f046db134f"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_closed" ref="a2d72e897acfb0c56eaaf72f046db134f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>&lt; void &gt; Gdk::PixbufLoader::signal_closed </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This signal is emitted when <a class="el" href="classGdk_1_1PixbufLoader.html#a9512407e3feac5405a6ac6e12ef23bfd" title="Informs a pixbuf loader that no further writes with PixbufLoader::write() will occur...">close()</a> is called. </p>
<p>It can be used by different parts of an application to receive notification when an image loader is closed by the code that drives it.</p>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_closed()</code> </dd></dl>

</div>
</div>
<a class="anchor" id="a26f567bc1828c59a8b8a710115e86b2f"></a><!-- doxytag: member="Gdk::PixbufLoader::signal_size_prepared" ref="a26f567bc1828c59a8b8a710115e86b2f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy2.html">Glib::SignalProxy2</a>&lt; void,int,int &gt; Gdk::PixbufLoader::signal_size_prepared </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This signal is emitted when the pixbuf loader has been fed the initial amount of data that is required to figure out the size of the image that it will create. </p>
<p>Applications can call <a class="el" href="classGdk_1_1PixbufLoader.html#a295cd5abb9e14975a6836f1bb568db58">set_size()</a> in response to this signal to set the desired size to which the image should be scaled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&#160;</td><td>The original width of the image. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&#160;</td><td>The original height of the image</td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_size_prepared(int width, int height)</code> </dd></dl>

</div>
</div>
<a class="anchor" id="a90ce41040208597527cf2251631aad45"></a><!-- doxytag: member="Gdk::PixbufLoader::write" ref="a90ce41040208597527cf2251631aad45" args="(const guint8 *buf, gsize count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::PixbufLoader::write </td>
          <td>(</td>
          <td class="paramtype">const guint8 *&#160;</td>
          <td class="paramname"> <em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gsize&#160;</td>
          <td class="paramname"> <em>count</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Causes the pixbuf loader to parse the next <em>count</em> bytes of an image. </p>
<p>It will return if the data was loaded successfully, and throw an exception if an error occurred. In the latter case, the loader will be closed, and will not accept further writes. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buf</em>&#160;</td><td>Pointer to image data. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&#160;</td><td>Length of the <em>buf</em> buffer in bytes. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGdk_1_1PixbufError.html" title="Exception class for Gdk::Pixbuf errors.">Gdk::PixbufError</a></em>&#160;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1FileError.html">Glib::FileError</a></em>&#160;</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="ab9193291650c2cca2b9367be62217339"></a><!-- doxytag: member="Gdk::PixbufLoader::wrap" ref="ab9193291650c2cca2b9367be62217339" args="(GdkPixbufLoader *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1PixbufLoader.html">Gdk::PixbufLoader</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdkPixbufLoader *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gdkmm/pixbufloader.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:44 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>