<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>glibmm 2.4: Gio::LoadableIcon Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../../../gtkmm-2.4/docs/index.html">Main Page</a> <a href="../../../../gtkmm-2.4/docs/reference/html/group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html">glibmm Namespaces</a> <a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- begin main content --> <div id="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="nav"> <a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1LoadableIcon.html">LoadableIcon</a></div> <h1>Gio::LoadableIcon Class Reference</h1><!-- doxytag: class="Gio::LoadableIcon" --><!-- doxytag: inherits="Gio::Icon" -->Extends the <a class="el" href="classGio_1_1Icon.html" title="This is a very minimal interface for icons.">Icon</a> interface and adds the ability to load icons from streams. <a href="#_details">More...</a> <p> <div class="dynheader"> Inheritance diagram for Gio::LoadableIcon:</div> <div class="dynsection"> <p><center><img src="classGio_1_1LoadableIcon__inherit__graph.png" border="0" usemap="#Gio_1_1LoadableIcon__inherit__map" alt="Inheritance graph"></center> <map name="Gio_1_1LoadableIcon__inherit__map"> <area shape="rect" href="classGio_1_1FileIcon.html" title="FileIcon specifies an icon by pointing to an image file to be used as icon." alt="" coords="24,393,123,420"><area shape="rect" href="classGio_1_1Icon.html" title="This is a very minimal interface for icons." alt="" coords="35,239,112,265"><area shape="rect" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="17,161,129,188"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="11,84,136,111"><area shape="rect" href="classsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="17,7,129,33"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classGio_1_1LoadableIcon-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#c1a01de0d91f26e45babaea521a982a9">~LoadableIcon</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">GLoadableIcon* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#a590b3b76843c19f5dbf51448f30e9f7">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a590b3b76843c19f5dbf51448f30e9f7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const GLoadableIcon* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#50a6f22519524e14d36d070cd2cb1c89">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#50a6f22519524e14d36d070cd2cb1c89"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br> <<a class="el" href="classGio_1_1InputStream.html">InputStream</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#f92f75fd1b6d4284e169c199a2c6b8c3">load</a> (int size, <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& type, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& cancellable)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Loads a loadable icon. <a href="#f92f75fd1b6d4284e169c199a2c6b8c3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br> <<a class="el" href="classGio_1_1InputStream.html">InputStream</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#cd3a877867f4ca2cbf5b1a5b059e2eb6">load</a> (int size, <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& type)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Non-cancellable version of <a class="el" href="classGio_1_1LoadableIcon.html#f92f75fd1b6d4284e169c199a2c6b8c3" title="Loads a loadable icon.">load()</a>. <a href="#cd3a877867f4ca2cbf5b1a5b059e2eb6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#0218104cdd576b7dde4846de9b997e41">load_async</a> (int size, const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& slot, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& cancellable)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Loads an icon asynchronously. <a href="#0218104cdd576b7dde4846de9b997e41"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#3e2f5cf5ef217e53e6dfcbd83cc553e1">load_async</a> (int size, const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& slot)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Non-cancellable version of <a class="el" href="classGio_1_1LoadableIcon.html#0218104cdd576b7dde4846de9b997e41" title="Loads an icon asynchronously.">load_async()</a>. <a href="#3e2f5cf5ef217e53e6dfcbd83cc553e1"></a><br></td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#ac15ee4e49c92f2822760cc774f908d8">add_interface</a> (GType gtype_implementer)</td></tr> <tr><td colspan="2"><br><h2>Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br> <<a class="el" href="classGio_1_1LoadableIcon.html">Gio::LoadableIcon</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1LoadableIcon.html#fa55d29b9394247f8824820bb92e8e6b">wrap</a> (GLoadableIcon* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#fa55d29b9394247f8824820bb92e8e6b"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Extends the <a class="el" href="classGio_1_1Icon.html" title="This is a very minimal interface for icons.">Icon</a> interface and adds the ability to load icons from streams. <p> <dl compact><dt><b><a class="el" href="newin2p16s.html#_newin2p16s000036">Since glibmm 2.16:</a></b></dt><dd></dd></dl> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="c1a01de0d91f26e45babaea521a982a9"></a><!-- doxytag: member="Gio::LoadableIcon::~LoadableIcon" ref="c1a01de0d91f26e45babaea521a982a9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gio::LoadableIcon::~LoadableIcon </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="ac15ee4e49c92f2822760cc774f908d8"></a><!-- doxytag: member="Gio::LoadableIcon::add_interface" ref="ac15ee4e49c92f2822760cc774f908d8" args="(GType gtype_implementer)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void Gio::LoadableIcon::add_interface </td> <td>(</td> <td class="paramtype">GType </td> <td class="paramname"> <em>gtype_implementer</em> </td> <td> ) </td> <td width="100%"><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="classGio_1_1Icon.html#bd37e490fdf4da67eb3bbe2561c16ee3">Gio::Icon</a>.</p> </div> </div><p> <a class="anchor" name="a590b3b76843c19f5dbf51448f30e9f7"></a><!-- doxytag: member="Gio::LoadableIcon::gobj" ref="a590b3b76843c19f5dbf51448f30e9f7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GLoadableIcon* Gio::LoadableIcon::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Provides access to the underlying C GObject. <p> <p>Reimplemented from <a class="el" href="classGio_1_1Icon.html#02ef784d9a07a205ce1d7daac39d2054">Gio::Icon</a>.</p> <p>Reimplemented in <a class="el" href="classGio_1_1FileIcon.html#0461feec986f30a389d7db0bfbc55673">Gio::FileIcon</a>.</p> </div> </div><p> <a class="anchor" name="50a6f22519524e14d36d070cd2cb1c89"></a><!-- doxytag: member="Gio::LoadableIcon::gobj" ref="50a6f22519524e14d36d070cd2cb1c89" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GLoadableIcon* Gio::LoadableIcon::gobj </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> 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="el" href="classGio_1_1Icon.html#94b7e4b63ce6c1c0f05673dd8b4adf94">Gio::Icon</a>.</p> <p>Reimplemented in <a class="el" href="classGio_1_1FileIcon.html#018eb170dea43e7bf697baa73070e195">Gio::FileIcon</a>.</p> </div> </div><p> <a class="anchor" name="f92f75fd1b6d4284e169c199a2c6b8c3"></a><!-- doxytag: member="Gio::LoadableIcon::load" ref="f92f75fd1b6d4284e169c199a2c6b8c3" args="(int size, Glib::ustring &type, const Glib::RefPtr< Cancellable > &cancellable)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InputStream.html">InputStream</a>> Gio::LoadableIcon::load </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="paramname"> <em>type</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td> <td class="paramname"> <em>cancellable</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Loads a loadable icon. <p> For the asynchronous version of this function, see <a class="el" href="classGio_1_1LoadableIcon.html#0218104cdd576b7dde4846de9b997e41" title="Loads an icon asynchronously.">load_async()</a>.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>an integer. </td></tr> <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>a location to store the type of the loaded icon </td></tr> <tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>a <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classGio_1_1InputStream.html" title="Base class for implementing streaming input.">InputStream</a> to read the icon from. </dd></dl> </div> </div><p> <a class="anchor" name="cd3a877867f4ca2cbf5b1a5b059e2eb6"></a><!-- doxytag: member="Gio::LoadableIcon::load" ref="cd3a877867f4ca2cbf5b1a5b059e2eb6" args="(int size, Glib::ustring &type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1InputStream.html">InputStream</a>> Gio::LoadableIcon::load </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="paramname"> <em>type</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Non-cancellable version of <a class="el" href="classGio_1_1LoadableIcon.html#f92f75fd1b6d4284e169c199a2c6b8c3" title="Loads a loadable icon.">load()</a>. <p> </div> </div><p> <a class="anchor" name="0218104cdd576b7dde4846de9b997e41"></a><!-- doxytag: member="Gio::LoadableIcon::load_async" ref="0218104cdd576b7dde4846de9b997e41" args="(int size, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gio::LoadableIcon::load_async </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td> <td class="paramname"> <em>slot</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>>& </td> <td class="paramname"> <em>cancellable</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Loads an icon asynchronously. <p> To finish this function, see load_finish(). For the synchronous, blocking version of this function, see <a class="el" href="classGio_1_1LoadableIcon.html#f92f75fd1b6d4284e169c199a2c6b8c3" title="Loads a loadable icon.">load()</a>.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>an integer. </td></tr> <tr><td valign="top"></td><td valign="top"><em>cancellable</em> </td><td>a <a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object </td></tr> <tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>a function to call when the request is satisfied </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="3e2f5cf5ef217e53e6dfcbd83cc553e1"></a><!-- doxytag: member="Gio::LoadableIcon::load_async" ref="3e2f5cf5ef217e53e6dfcbd83cc553e1" args="(int size, const SlotAsyncReady &slot)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gio::LoadableIcon::load_async </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespaceGio.html#ecaa02709f9ab83fa2b36d2571665cbe">SlotAsyncReady</a>& </td> <td class="paramname"> <em>slot</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Non-cancellable version of <a class="el" href="classGio_1_1LoadableIcon.html#0218104cdd576b7dde4846de9b997e41" title="Loads an icon asynchronously.">load_async()</a>. <p> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="fa55d29b9394247f8824820bb92e8e6b"></a><!-- doxytag: member="Gio::LoadableIcon::wrap" ref="fa55d29b9394247f8824820bb92e8e6b" args="(GLoadableIcon *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1LoadableIcon.html">Gio::LoadableIcon</a>> wrap </td> <td>(</td> <td class="paramtype">GLoadableIcon * </td> <td class="paramname"> <em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p> A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr> <tr><td valign="top"></td><td valign="top"><em>take_copy</em> </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> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="loadableicon_8h.html">loadableicon.h</a></ul> </div> <!-- end main content --> <hr><address><small> Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.5.3 © 1997-2001</small></address> </body> </html>