<!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>Gtk::IconSource 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="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Gtk::IconSource Class Reference</h1><a href="classGtk_1_1IconSource-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 Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a0">IconSource</a> ()</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a1">IconSource</a> (GtkIconSource* gobject, bool make_a_copy=true)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a2">IconSource</a> (const IconSource& other)</td></tr> <tr><td nowrap align=right valign=top>IconSource& </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a3">operator=</a> (const IconSource& other)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a4">~IconSource</a> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a5">swap</a> (IconSource& other)</td></tr> <tr><td nowrap align=right valign=top>GtkIconSource* </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a6">gobj</a> ()</td></tr> <tr><td nowrap align=right valign=top>const GtkIconSource* </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a7">gobj</a> () const</td></tr> <tr><td nowrap align=right valign=top>GtkIconSource* </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a8">gobj_copy</a> () const</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a9">set_filename</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& filename)</td></tr> <tr><td> </td><td><font size=-1><em>Sets the name of an image file to use as a base image when creating icon variants for <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a>.</em> <a href="#a9"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a10">set_pixbuf</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>>& pixbuf)</td></tr> <tr><td> </td><td><font size=-1><em>Sets a pixbuf to use as a base image when creating icon variants for <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a>.</em> <a href="#a10"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a11">get_filename</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Retrieves the source filename, or <code>0</code> if none is set.</em> <a href="#a11"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a12">get_pixbuf</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Retrieves the source pixbuf, or <code>0</code> if none is set.</em> <a href="#a12"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a13">set_direction_wildcarded</a> (bool setting=true)</td></tr> <tr><td> </td><td><font size=-1><em>If the text direction is wildcarded, this source can be used as the base image for an icon in any <a class="el" href="group__gtkmmEnums.html#a71">Gtk::TextDirection</a>.</em> <a href="#a13"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a14">set_state_wildcarded</a> (bool setting=true)</td></tr> <tr><td> </td><td><font size=-1><em>If the widget state is wildcarded, this source can be used as the base image for an icon in any <a class="el" href="group__atkmmEnums.html#a4">Gtk::StateType</a>.</em> <a href="#a14"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a15">set_size_wildcarded</a> (bool setting=true)</td></tr> <tr><td> </td><td><font size=-1><em>If the icon size is wildcarded, this source can be used as the base image for an icon of any size.</em> <a href="#a15"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a16">get_size_wildcarded</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Gets the value set by gtk_icon_source_set_size_wildcarded().</em> <a href="#a16"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a17">get_state_wildcarded</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Gets the value set by gtk_icon_source_set_state_wildcarded().</em> <a href="#a17"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a18">get_direction_wildcarded</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Gets the value set by gtk_icon_source_set_direction_wildcarded().</em> <a href="#a18"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a19">set_direction</a> (<a class="el" href="group__gtkmmEnums.html#a71">TextDirection</a> direction)</td></tr> <tr><td> </td><td><font size=-1><em>Sets the text direction this icon source is intended to be used with.</em> <a href="#a19"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a20">set_state</a> (<a class="el" href="group__atkmmEnums.html#a4">StateType</a> state)</td></tr> <tr><td> </td><td><font size=-1><em>Sets the widget state this icon source is intended to be used with.</em> <a href="#a20"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a21">set_size</a> (<a class="el" href="classGtk_1_1IconSize.html">IconSize</a> size)</td></tr> <tr><td> </td><td><font size=-1><em>Sets the icon size this icon source is intended to be used with.</em> <a href="#a21"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__gtkmmEnums.html#a71">TextDirection</a> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a22">get_direction</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Obtains the text direction this icon source applies to.</em> <a href="#a22"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="group__atkmmEnums.html#a4">StateType</a> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a23">get_state</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Obtains the widget state this icon source applies to.</em> <a href="#a23"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1IconSize.html">IconSize</a> </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#a24">get_size</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Obtains the icon size this source applies to.</em> <a href="#a24"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>GtkIconSource* </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#n0">gobject_</a></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 nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#k0">swap</a> (IconSource& lhs, IconSource& rhs)</td></tr> <tr><td nowrap align=right valign=top>Gtk::IconSource </td><td valign=bottom><a class="el" href="classGtk_1_1IconSource.html#k1">wrap</a> (GtkIconSource* object, bool take_copy=false)</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Gtk::IconSource::IconSource"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::IconSource::IconSource </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a1" doxytag="Gtk::IconSource::IconSource"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::IconSource::IconSource </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GtkIconSource* </td> <td class="mdname" nowrap> <em>gobject</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>make_a_copy</em> = true</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [explicit]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a2" doxytag="Gtk::IconSource::IconSource"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::IconSource::IconSource </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const IconSource& </td> <td class="mdname1" valign="top" nowrap> <em>other</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a4" doxytag="Gtk::IconSource::~IconSource"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::IconSource::~IconSource </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a22" doxytag="Gtk::IconSource::get_direction"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__gtkmmEnums.html#a71">TextDirection</a> Gtk::IconSource::get_direction </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Obtains the text direction this icon source applies to. <p> The return value is only useful/meaningful if the text direction is <em>not</em> wildcarded. <dl compact><dt><b>Returns:</b></dt><dd>Text direction this source matches. </dd></dl> </td> </tr> </table> <a name="a18" doxytag="Gtk::IconSource::get_direction_wildcarded"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::IconSource::get_direction_wildcarded </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the value set by gtk_icon_source_set_direction_wildcarded(). <p> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if this icon source is a base for any text direction variant. </dd></dl> </td> </tr> </table> <a name="a11" doxytag="Gtk::IconSource::get_filename"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Gtk::IconSource::get_filename </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Retrieves the source filename, or <code>0</code> if none is set. <p> The filename is not a copy, and should not be modified or expected to persist beyond the lifetime of the icon source. <dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGtk_1_1Image.html">Image</a> filename. This string must not be modified or freed. </dd></dl> </td> </tr> </table> <a name="a12" doxytag="Gtk::IconSource::get_pixbuf"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>> Gtk::IconSource::get_pixbuf </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Retrieves the source pixbuf, or <code>0</code> if none is set. <p> The reference count on the pixbuf is not incremented. <dl compact><dt><b>Returns:</b></dt><dd>Source pixbuf. </dd></dl> </td> </tr> </table> <a name="a24" doxytag="Gtk::IconSource::get_size"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1IconSize.html">IconSize</a> Gtk::IconSource::get_size </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Obtains the icon size this source applies to. <p> The return value is only useful/meaningful if the icon size is <em>not</em> wildcarded. <dl compact><dt><b>Returns:</b></dt><dd>Icon size this source matches. </dd></dl> </td> </tr> </table> <a name="a16" doxytag="Gtk::IconSource::get_size_wildcarded"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::IconSource::get_size_wildcarded </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the value set by gtk_icon_source_set_size_wildcarded(). <p> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if this icon source is a base for any icon size variant. </dd></dl> </td> </tr> </table> <a name="a23" doxytag="Gtk::IconSource::get_state"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="group__atkmmEnums.html#a4">StateType</a> Gtk::IconSource::get_state </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Obtains the widget state this icon source applies to. <p> The return value is only useful/meaningful if the widget state is <em>not</em> wildcarded. <dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="classGtk_1_1Widget.html">Widget</a> state this source matches. </dd></dl> </td> </tr> </table> <a name="a17" doxytag="Gtk::IconSource::get_state_wildcarded"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::IconSource::get_state_wildcarded </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the value set by gtk_icon_source_set_state_wildcarded(). <p> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if this icon source is a base for any widget state variant. </dd></dl> </td> </tr> </table> <a name="a7" doxytag="Gtk::IconSource::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const GtkIconSource* Gtk::IconSource::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a6" doxytag="Gtk::IconSource::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GtkIconSource* Gtk::IconSource::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a8" doxytag="Gtk::IconSource::gobj_copy"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GtkIconSource* Gtk::IconSource::gobj_copy </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="Gtk::IconSource::operator="></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> IconSource& Gtk::IconSource::operator= </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const IconSource& </td> <td class="mdname1" valign="top" nowrap> <em>other</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a19" doxytag="Gtk::IconSource::set_direction"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_direction </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__gtkmmEnums.html#a71">TextDirection</a> </td> <td class="mdname1" valign="top" nowrap> <em>direction</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets the text direction this icon source is intended to be used with. <p> Setting the text direction on an icon source makes no difference if the text direction is wildcarded. Therefore, you should usually call gtk_icon_source_set_direction_wildcarded() to un-wildcard it in addition to calling this function. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>direction</em> </td><td>Text direction this source applies to. </td></tr> </table> </dl> </td> </tr> </table> <a name="a13" doxytag="Gtk::IconSource::set_direction_wildcarded"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_direction_wildcarded </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>setting</em> = true </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> If the text direction is wildcarded, this source can be used as the base image for an icon in any <a class="el" href="group__gtkmmEnums.html#a71">Gtk::TextDirection</a>. <p> If the text direction is not wildcarded, then the text direction the icon source applies to should be set with gtk_icon_source_set_direction(), and the icon source will only be used with that text direction. <p> <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>setting</em> </td><td><code>true</code> to wildcard the text direction. </td></tr> </table> </dl> </td> </tr> </table> <a name="a9" doxytag="Gtk::IconSource::set_filename"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_filename </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname1" valign="top" nowrap> <em>filename</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets the name of an image file to use as a base image when creating icon variants for <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a>. <p> The filename must be absolute. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>filename</em> </td><td><a class="el" href="classGtk_1_1Image.html">Image</a> file to use. </td></tr> </table> </dl> </td> </tr> </table> <a name="a10" doxytag="Gtk::IconSource::set_pixbuf"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_pixbuf </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a>>& </td> <td class="mdname1" valign="top" nowrap> <em>pixbuf</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets a pixbuf to use as a base image when creating icon variants for <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a>. <p> If an icon source has both a filename and a pixbuf set, the pixbuf will take priority. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>pixbuf</em> </td><td>Pixbuf to use as a source. </td></tr> </table> </dl> </td> </tr> </table> <a name="a21" doxytag="Gtk::IconSource::set_size"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_size </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="classGtk_1_1IconSize.html">IconSize</a> </td> <td class="mdname1" valign="top" nowrap> <em>size</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets the icon size this icon source is intended to be used with. <p> Setting the icon size on an icon source makes no difference if the size is wildcarded. Therefore, you should usually call gtk_icon_source_set_size_wildcarded() to un-wildcard it in addition to calling this function. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>size</em> </td><td>Icon size this source applies to. </td></tr> </table> </dl> </td> </tr> </table> <a name="a15" doxytag="Gtk::IconSource::set_size_wildcarded"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_size_wildcarded </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>setting</em> = true </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> If the icon size is wildcarded, this source can be used as the base image for an icon of any size. <p> If the size is not wildcarded, then the size the source applies to should be set with gtk_icon_source_set_size() and the icon source will only be used with that specific size. <p> <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible. <p> <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> will normally scale wildcarded source images to produce an appropriate icon at a given size, but will not change the size of source images that match exactly. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>setting</em> </td><td><code>true</code> to wildcard the widget state. </td></tr> </table> </dl> </td> </tr> </table> <a name="a20" doxytag="Gtk::IconSource::set_state"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_state </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="group__atkmmEnums.html#a4">StateType</a> </td> <td class="mdname1" valign="top" nowrap> <em>state</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets the widget state this icon source is intended to be used with. <p> Setting the widget state on an icon source makes no difference if the state is wildcarded. Therefore, you should usually call gtk_icon_source_set_state_wildcarded() to un-wildcard it in addition to calling this function. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>state</em> </td><td><a class="el" href="classGtk_1_1Widget.html">Widget</a> state this source applies to. </td></tr> </table> </dl> </td> </tr> </table> <a name="a14" doxytag="Gtk::IconSource::set_state_wildcarded"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::set_state_wildcarded </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>setting</em> = true </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> If the widget state is wildcarded, this source can be used as the base image for an icon in any <a class="el" href="group__atkmmEnums.html#a4">Gtk::StateType</a>. <p> If the widget state is not wildcarded, then the state the source applies to should be set with gtk_icon_source_set_state() and the icon source will only be used with that specific state. <p> <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> prefers non-wildcarded sources (exact matches) over wildcarded sources, and will use an exact match when possible. <p> <a class="el" href="classGtk_1_1IconSet.html">Gtk::IconSet</a> will normally transform wildcarded source images to produce an appropriate icon for a given state, for example lightening an image on prelight, but will not modify source images that match exactly. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>setting</em> </td><td><code>true</code> to wildcard the widget state. </td></tr> </table> </dl> </td> </tr> </table> <a name="a5" doxytag="Gtk::IconSource::swap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::IconSource::swap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">IconSource& </td> <td class="mdname1" valign="top" nowrap> <em>other</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="k0" doxytag="Gtk::IconSource::swap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void swap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">IconSource& </td> <td class="mdname" nowrap> <em>lhs</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>IconSource& </td> <td class="mdname" nowrap> <em>rhs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="k1" doxytag="Gtk::IconSource::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::IconSource wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GtkIconSource* </td> <td class="mdname" nowrap> <em>object</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="n0" doxytag="Gtk::IconSource::gobject_"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GtkIconSource* Gtk::IconSource::gobject_<code> [protected]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="iconsource_8h.html">iconsource.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>