Sophie

Sophie

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

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: Gtk::IconSet 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="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1IconSet.html">IconSet</a>
  </div>
</div>
<div class="contents">
<h1>Gtk::IconSet Class Reference</h1><!-- doxytag: class="Gtk::IconSet" -->
<p><a href="classGtk_1_1IconSet-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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a74f8341263828b1fd199ea97bcb7b7a0">IconSet</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a96d972c3659bf595ba9d08321e07dd33">IconSet</a> (GtkIconSet* gobject, bool make_a_copy=true)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#aef92238b05036576f0f75bc547dc0482">IconSet</a> (const <a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp; other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a499d1f7a05526b4af9c43a2c11c1bed5">operator=</a> (const <a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp; other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a7c415d212c1b1d442709d6e41020c5d2">~IconSet</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a2f3e797b67c64c35f3319496e8e5cc39">swap</a> (<a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp; other)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkIconSet*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a08103c2be66b90dc26ceb3a5a4f7cc3a">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. <a href="#a08103c2be66b90dc26ceb3a5a4f7cc3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkIconSet*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#aa0420b9ad08c80326bdf2d5a49f8ad6e">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. <a href="#aa0420b9ad08c80326bdf2d5a49f8ad6e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkIconSet*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#afb74d5729a6f1c7227293d81a3135916">gobj_copy</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. <a href="#afb74d5729a6f1c7227293d81a3135916"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a708edd7b96b3facda0e94a2086fae9b9">IconSet</a> (const <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;&amp; pixbuf)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a8d7d2d76d15e6f50b104dadb48125e0b">copy</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies <em>icon_set</em> by value. <a href="#a8d7d2d76d15e6f50b104dadb48125e0b"></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="classGtk_1_1IconSet.html#a63011eec8801c22ec1fc60b03a020748">render_icon</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Style.html">Style</a> &gt;&amp; style, <a class="el" href="group__gtkmmEnums.html#gaabfcae0b9b0cf2aab01ee96352668d3d">TextDirection</a> direction, <a class="el" href="group__gtkmmEnums.html#gae389c7fef8176df3e8b7992c521d9661">Gtk::StateType</a> state, <a class="el" href="classGtk_1_1IconSize.html">IconSize</a> <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01154.html#ga445a43f417432dd1b9aed90ef239c700">size</a>, <a class="el" href="classGtk_1_1Widget.html">Widget</a>&amp; widget, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; detail)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Renders an icon using <a class="el" href="classGtk_1_1Style.html#a40a10865414f55092da7bd1c60d9d5dc" title="Renders the icon specified by source at the given size according to the given parameters...">Gtk::Style::render_icon()</a>. <a href="#a63011eec8801c22ec1fc60b03a020748"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a6d929e0b56c46794132b237b022781bb">add_source</a> (const <a class="el" href="classGtk_1_1IconSource.html">IconSource</a>&amp; source)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Icon sets have a list of <a class="el" href="classGtk_1_1IconSource.html">Gtk::IconSource</a>, which they use as base icons for rendering icons in different states and sizes. <a href="#a6d929e0b56c46794132b237b022781bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt; <a class="el" href="classGtk_1_1IconSize.html">IconSize</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#a96a9abc5adac28fe91b103dcb2ee3dc9">get_sizes</a> () const </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="el" href="classGtk_1_1IconSet.html">IconSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#aa6cc0560e7f2ced992863f74704570ab">lookup_default</a> (const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>&amp; stock_id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Looks for an icon in the list of default icon factories. <a href="#aa6cc0560e7f2ced992863f74704570ab"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkIconSet*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#adf54658f63a8511983cbf1fe5d850360">gobject_</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="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1IconSet.html#afcaf3bb7f86927f20d79f09c1ce72af3">wrap</a> (GtkIconSet* 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="#afcaf3bb7f86927f20d79f09c1ce72af3"></a><br/></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a74f8341263828b1fd199ea97bcb7b7a0"></a><!-- doxytag: member="Gtk::IconSet::IconSet" ref="a74f8341263828b1fd199ea97bcb7b7a0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSet::IconSet </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="a96d972c3659bf595ba9d08321e07dd33"></a><!-- doxytag: member="Gtk::IconSet::IconSet" ref="a96d972c3659bf595ba9d08321e07dd33" args="(GtkIconSet *gobject, bool make_a_copy=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSet::IconSet </td>
          <td>(</td>
          <td class="paramtype">GtkIconSet *&#160;</td>
          <td class="paramname"> <em>gobject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>make_a_copy</em> = <code>true</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aef92238b05036576f0f75bc547dc0482"></a><!-- doxytag: member="Gtk::IconSet::IconSet" ref="aef92238b05036576f0f75bc547dc0482" args="(const IconSet &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSet::IconSet </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp;&#160;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7c415d212c1b1d442709d6e41020c5d2"></a><!-- doxytag: member="Gtk::IconSet::~IconSet" ref="a7c415d212c1b1d442709d6e41020c5d2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSet::~IconSet </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="a708edd7b96b3facda0e94a2086fae9b9"></a><!-- doxytag: member="Gtk::IconSet::IconSet" ref="a708edd7b96b3facda0e94a2086fae9b9" args="(const Glib::RefPtr&lt; Gdk::Pixbuf &gt; &amp;pixbuf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::IconSet::IconSet </td>
          <td>(</td>
          <td class="paramtype">const <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;&amp;&#160;</td>
          <td class="paramname"> <em>pixbuf</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6d929e0b56c46794132b237b022781bb"></a><!-- doxytag: member="Gtk::IconSet::add_source" ref="a6d929e0b56c46794132b237b022781bb" args="(const IconSource &amp;source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::IconSet::add_source </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1IconSource.html">IconSource</a>&amp;&#160;</td>
          <td class="paramname"> <em>source</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Icon sets have a list of <a class="el" href="classGtk_1_1IconSource.html">Gtk::IconSource</a>, which they use as base icons for rendering icons in different states and sizes. </p>
<p>Icons are scaled, made to look insensitive, etc. in <a class="el" href="classGtk_1_1IconSet.html#a63011eec8801c22ec1fc60b03a020748" title="Renders an icon using Gtk::Style::render_icon().">render_icon()</a>, but <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> needs base images to work with. The base images and when to use them are described by a <a class="el" href="classGtk_1_1IconSource.html">Gtk::IconSource</a>.</p>
<p>This function copies <em>source</em>, so you can reuse the same source immediately without affecting the icon set.</p>
<p>An example of when you'd use this function: a web browser's "Back
 to Previous Page" icon might point in a different direction in Hebrew and in English; it might look different when insensitive; and it might change size depending on toolbar mode (small/large icons). So a single icon set would contain all those variants of the icon, and you might add a separate source for each one.</p>
<p>You should nearly always add a "default" icon source with all fields wildcarded, which will be used as a fallback if no more specific source matches. <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> always prefers more specific icon sources to more generic icon sources. The order in which you add the sources to the icon set does not matter.</p>
<p>new_from_pixbuf() creates a new icon set with a default icon source based on the given pixbuf. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>source</em>&#160;</td><td>A <a class="el" href="classGtk_1_1IconSource.html">Gtk::IconSource</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8d7d2d76d15e6f50b104dadb48125e0b"></a><!-- doxytag: member="Gtk::IconSet::copy" ref="a8d7d2d76d15e6f50b104dadb48125e0b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1IconSet.html">IconSet</a> Gtk::IconSet::copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copies <em>icon_set</em> by value. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A new <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> identical to the first. </dd></dl>

</div>
</div>
<a class="anchor" id="a96a9abc5adac28fe91b103dcb2ee3dc9"></a><!-- doxytag: member="Gtk::IconSet::get_sizes" ref="a96a9abc5adac28fe91b103dcb2ee3dc9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a>&lt;<a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&gt; Gtk::IconSet::get_sizes </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="aa0420b9ad08c80326bdf2d5a49f8ad6e"></a><!-- doxytag: member="Gtk::IconSet::gobj" ref="aa0420b9ad08c80326bdf2d5a49f8ad6e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkIconSet* Gtk::IconSet::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 instance. </p>

</div>
</div>
<a class="anchor" id="a08103c2be66b90dc26ceb3a5a4f7cc3a"></a><!-- doxytag: member="Gtk::IconSet::gobj" ref="a08103c2be66b90dc26ceb3a5a4f7cc3a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkIconSet* Gtk::IconSet::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 instance. </p>

</div>
</div>
<a class="anchor" id="afb74d5729a6f1c7227293d81a3135916"></a><!-- doxytag: member="Gtk::IconSet::gobj_copy" ref="afb74d5729a6f1c7227293d81a3135916" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkIconSet* Gtk::IconSet::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="aa6cc0560e7f2ced992863f74704570ab"></a><!-- doxytag: member="Gtk::IconSet::lookup_default" ref="aa6cc0560e7f2ced992863f74704570ab" args="(const Gtk::StockID &amp;stock_id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGtk_1_1IconSet.html">IconSet</a> Gtk::IconSet::lookup_default </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>&amp;&#160;</td>
          <td class="paramname"> <em>stock_id</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Looks for an icon in the list of default icon factories. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>stock_id</em>&#160;</td><td><a class="el" href="classGtk_1_1StockID.html" title="See also Gtk::BuiltinStockID.">StockID</a> to search for</td></tr>
  </table>
  </dd>
</dl>
<p>For display to the user, you should use <a class="el" href="classGtk_1_1Style.html#a56707668788ba2b3fcb75fdac47668bd" title="Looks up stock_id in the icon factories associated with style and the default icon...">Style::lookup_icon_set()</a> on the <a class="el" href="classGtk_1_1Style.html">Style</a> for the widget that will display the icon, instead of using this function directly, so that themes are taken into account</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>an <a class="el" href="classGtk_1_1IconSet.html">IconSet</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a499d1f7a05526b4af9c43a2c11c1bed5"></a><!-- doxytag: member="Gtk::IconSet::operator=" ref="a499d1f7a05526b4af9c43a2c11c1bed5" args="(const IconSet &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp; Gtk::IconSet::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp;&#160;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a63011eec8801c22ec1fc60b03a020748"></a><!-- doxytag: member="Gtk::IconSet::render_icon" ref="a63011eec8801c22ec1fc60b03a020748" args="(const Glib::RefPtr&lt; Style &gt; &amp;style, TextDirection direction, Gtk::StateType state, IconSize size, Widget &amp;widget, const Glib::ustring &amp;detail)" -->
<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; Gtk::IconSet::render_icon </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGtk_1_1Style.html">Style</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#gaabfcae0b9b0cf2aab01ee96352668d3d">TextDirection</a>&#160;</td>
          <td class="paramname"> <em>direction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#gae389c7fef8176df3e8b7992c521d9661">Gtk::StateType</a>&#160;</td>
          <td class="paramname"> <em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classGtk_1_1IconSize.html">IconSize</a>&#160;</td>
          <td class="paramname"> <em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>&amp;&#160;</td>
          <td class="paramname"> <em>widget</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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>detail</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Renders an icon using <a class="el" href="classGtk_1_1Style.html#a40a10865414f55092da7bd1c60d9d5dc" title="Renders the icon specified by source at the given size according to the given parameters...">Gtk::Style::render_icon()</a>. </p>
<p>In most cases, <a class="el" href="classGtk_1_1Widget.html#a91efd1b5aed7c184506ddd5721710584" title="A convenience function that uses the theme engine and RC file settings for the widget...">Gtk::Widget::render_icon()</a> is better, since it automatically provides most of the arguments from the current widget settings. This function never returns <code>0</code>; if the icon can't be rendered (perhaps because an image file fails to load), a default "missing
 image" icon will be returned instead. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>style</em>&#160;</td><td>A <a class="el" href="classGtk_1_1Style.html">Gtk::Style</a> associated with <em>widget</em>, or <code>0</code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>direction</em>&#160;</td><td>Text direction. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>state</em>&#160;</td><td><a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets).">Widget</a> state. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&#160;</td><td>Icon size. A size of (GtkIconSize)-1 means render at the size of the source and don't scale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>widget</em>&#160;</td><td><a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets).">Widget</a> that will display the icon, or <code>0</code>. The only use that is typically made of this is to determine the appropriate <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation...">Gdk::Screen</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>detail</em>&#160;</td><td>Detail to pass to the theme engine, or <code>0</code>. Note that passing a detail of anything but <code>0</code> will disable caching. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> to be displayed. </dd></dl>

</div>
</div>
<a class="anchor" id="a2f3e797b67c64c35f3319496e8e5cc39"></a><!-- doxytag: member="Gtk::IconSet::swap" ref="a2f3e797b67c64c35f3319496e8e5cc39" args="(IconSet &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::IconSet::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGtk_1_1IconSet.html">IconSet</a>&amp;&#160;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="afcaf3bb7f86927f20d79f09c1ce72af3"></a><!-- doxytag: member="Gtk::IconSet::wrap" ref="afcaf3bb7f86927f20d79f09c1ce72af3" args="(GtkIconSet *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> wrap </td>
          <td>(</td>
          <td class="paramtype">GtkIconSet *&#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/><h2>Member Data Documentation</h2>
<a class="anchor" id="adf54658f63a8511983cbf1fe5d850360"></a><!-- doxytag: member="Gtk::IconSet::gobject_" ref="adf54658f63a8511983cbf1fe5d850360" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkIconSet* <a class="el" href="classGtk_1_1IconSet.html#adf54658f63a8511983cbf1fe5d850360">Gtk::IconSet::gobject_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/iconset.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:53 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>