File: //usr/local/ssl/share/gtk-doc/html/libgnomeui/libgnomeui-gnome-vfs-util.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>gnome-vfs-util</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GNOME UI Library Reference Manual">
<link rel="up" href="miscellaneous.html" title="Miscellaneous utility functions and macros">
<link rel="prev" href="libgnomeui-gnome-uidefs.html" title="gnome-uidefs">
<link rel="next" href="deprecated.html" title="Deprecated modules">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="GNOME UI Library (libgnomeui)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libgnomeui-gnome-uidefs.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="miscellaneous.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME UI Library Reference Manual</th>
<td><a accesskey="n" href="deprecated.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3115576" class="shortcut">Top</a>
 | 
<a href="#id3115763" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgnomeui-gnome-vfs-util"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3115576"></a><span class="refentrytitle">gnome-vfs-util</span>
</h2>
<p>gnome-vfs-util — </p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <libgnomeui/libgnomeui.h>
void (<a href="libgnomeui-gnome-vfs-util.html#GnomeGdkPixbufLoadCallback">*GnomeGdkPixbufLoadCallback</a>) (GnomeGdkPixbufAsyncHandle *handle,
<a
href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult"
>GnomeVFSResult</a> error,
<a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *pixbuf,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> cb_data);
void (<a href="libgnomeui-gnome-vfs-util.html#GnomeGdkPixbufDoneCallback">*GnomeGdkPixbufDoneCallback</a>) (GnomeGdkPixbufAsyncHandle *handle,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> cb_data);
<a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>* <a href="libgnomeui-gnome-vfs-util.html#gnome-gdk-pixbuf-new-from-uri">gnome_gdk_pixbuf_new_from_uri</a> (const char *uri);
GnomeGdkPixbufAsyncHandle* <a href="libgnomeui-gnome-vfs-util.html#gnome-gdk-pixbuf-new-from-uri-async">gnome_gdk_pixbuf_new_from_uri_async</a>
(const char *uri,
<a href="libgnomeui-gnome-vfs-util.html#GnomeGdkPixbufLoadCallback">GnomeGdkPixbufLoadCallback</a> load_callback,
<a href="libgnomeui-gnome-vfs-util.html#GnomeGdkPixbufDoneCallback">GnomeGdkPixbufDoneCallback</a> done_callback,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);
void <a href="libgnomeui-gnome-vfs-util.html#gnome-gdk-pixbuf-new-from-uri-cancel">gnome_gdk_pixbuf_new_from_uri_cancel</a>
(GnomeGdkPixbufAsyncHandle *handle);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3115763"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3115777"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3115787"></a><h3>
<a name="GnomeGdkPixbufLoadCallback"></a>GnomeGdkPixbufLoadCallback ()</h3>
<a class="indexterm" name="id3115801"></a><pre class="programlisting">void (*GnomeGdkPixbufLoadCallback) (GnomeGdkPixbufAsyncHandle *handle,
<a
href="/usr/share/gtk-doc/html/gnome-vfs-2.0/gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult"
>GnomeVFSResult</a> error,
<a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *pixbuf,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> cb_data);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>handle</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>error</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cb_data</code></em> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3115911"></a><h3>
<a name="GnomeGdkPixbufDoneCallback"></a>GnomeGdkPixbufDoneCallback ()</h3>
<a class="indexterm" name="id3115925"></a><pre class="programlisting">void (*GnomeGdkPixbufDoneCallback) (GnomeGdkPixbufAsyncHandle *handle,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> cb_data);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>handle</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>cb_data</code></em> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3115992"></a><h3>
<a name="gnome-gdk-pixbuf-new-from-uri"></a>gnome_gdk_pixbuf_new_from_uri ()</h3>
<a class="indexterm" name="id3116008"></a><pre class="programlisting"><a
href="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>* gnome_gdk_pixbuf_new_from_uri (const char *uri);</pre>
<p>
Loads a GdkPixbuf from the image file <em class="parameter"><code>uri</code></em> points to, scaling it to the
desired size. If you pass -1 for <em class="parameter"><code>width</code></em> or <em class="parameter"><code>height</code></em> then the value
specified in the file will be used.
</p>
<p>
When preserving aspect ratio, if both height and width are set the size
is picked such that the scaled image fits in a width * height rectangle.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>uri</code></em> :</span></td>
<td> the uri of an image
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> The loaded pixbuf, or NULL on error
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.14
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3116099"></a><h3>
<a name="gnome-gdk-pixbuf-new-from-uri-async"></a>gnome_gdk_pixbuf_new_from_uri_async ()</h3>
<a class="indexterm" name="id3116113"></a><pre class="programlisting">GnomeGdkPixbufAsyncHandle* gnome_gdk_pixbuf_new_from_uri_async
(const char *uri,
<a href="libgnomeui-gnome-vfs-util.html#GnomeGdkPixbufLoadCallback">GnomeGdkPixbufLoadCallback</a> load_callback,
<a href="libgnomeui-gnome-vfs-util.html#GnomeGdkPixbufDoneCallback">GnomeGdkPixbufDoneCallback</a> done_callback,
<a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> callback_data);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>uri</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>load_callback</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>done_callback</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>callback_data</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3116236"></a><h3>
<a name="gnome-gdk-pixbuf-new-from-uri-cancel"></a>gnome_gdk_pixbuf_new_from_uri_cancel ()</h3>
<a class="indexterm" name="id3116250"></a><pre class="programlisting">void gnome_gdk_pixbuf_new_from_uri_cancel
(GnomeGdkPixbufAsyncHandle *handle);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>handle</code></em> :</span></td>
<td>
</td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>