1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>glibmm 2.4: Gio::Icon Class Reference</title>
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>glibmm: Gio::Icon Class Reference</title>
4
<link href="tabs.css" rel="stylesheet" type="text/css">
4
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<body bgcolor="#ffffff">
7
<table border="0" width="100%">
9
<td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
10
<td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
14
<a class="qindex" href="http://www.gtkmm.org/documentation.shtml">Main Page</a>
15
<a class="qindex" href="namespaces.html">glibmm Namespaces</a>
16
<a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a>
20
<!-- begin main content -->
22
<!-- Generated by Doxygen 1.5.9 -->
7
<!-- Generated by Doxygen 1.5.8 -->
8
<div class="navigation" id="top">
11
<li><a href="index.html"><span>Main Page</span></a></li>
12
<li><a href="pages.html"><span>Related Pages</span></a></li>
13
<li><a href="modules.html"><span>Modules</span></a></li>
14
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
15
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
16
<li><a href="examples.html"><span>Examples</span></a></li>
21
<li><a href="annotated.html"><span>Class List</span></a></li>
22
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
23
<li><a href="functions.html"><span>Class Members</span></a></li>
23
26
<div class="navpath"><a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1Icon.html">Icon</a>
25
29
<div class="contents">
26
<h1>Gio::Icon Class Reference</h1><!-- doxytag: class="Gio::Icon" --><!-- doxytag: inherits="Glib::Interface" -->This is a very minimal interface for icons.
27
<a href="#_details">More...</a>
30
<h1>Gio::Icon Class Reference</h1><!-- doxytag: class="Gio::Icon" --><!-- doxytag: inherits="Glib::Interface" -->This is a very minimal interface for icons. <a href="#_details">More...</a>
32
Inherits <a class="el" href="classGlib_1_1Interface.html">Glib::Interface</a>.
34
Inherited by <a class="el" href="classGio_1_1Emblem.html">Gio::Emblem</a>, <a class="el" href="classGio_1_1EmblemedIcon.html">Gio::EmblemedIcon</a>, <a class="el" href="classGio_1_1LoadableIcon.html">Gio::LoadableIcon</a>, and <a class="el" href="classGio_1_1ThemedIcon.html">Gio::ThemedIcon</a>.
29
36
<div class="dynheader">
30
Inheritance diagram for Gio::Icon:</div>
37
Collaboration diagram for Gio::Icon:</div>
31
38
<div class="dynsection">
32
<p><center><img src="classGio_1_1Icon__inherit__graph.png" border="0" usemap="#Gio_1_1Icon__inherit__map" alt="Inheritance graph"></center>
33
<map name="Gio_1_1Icon__inherit__map">
34
<area shape="rect" href="classGio_1_1Emblem.html" title="An object for emblems." alt="" coords="5,315,101,344"><area shape="rect" href="classGio_1_1EmblemedIcon.html" title="Icons with Emblems." alt="" coords="125,315,261,344"><area shape="rect" href="classGio_1_1LoadableIcon.html" title="Extends the Icon interface and adds the ability to load icons from streams." alt="" coords="285,315,411,344"><area shape="rect" href="classGio_1_1ThemedIcon.html" title="Icon theming support ThemedIcon is an implementation of Gio::Icon that supports icon..." alt="" coords="435,315,555,344"><area shape="rect" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="219,160,323,189"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="211,83,331,112"><area shape="rect" href="classsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="217,5,324,35"><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="300,392,396,421"></map>
39
<p><center><img src="classGio_1_1Icon__coll__graph.png" border="0" usemap="#Gio_1_1Icon__coll__map" alt="Collaboration graph"></center>
40
<map name="Gio_1_1Icon__coll__map">
41
<area shape="rect" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="13,155,117,181"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="5,80,125,107"></map>
35
42
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
38
45
<a href="classGio_1_1Icon-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
40
47
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#860156dd8f8c9143cce6fba134e5d7cb">~Icon</a> ()</td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">GIcon* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#02ef784d9a07a205ce1d7daac39d2054">gobj</a> ()</td></tr>
45
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#02ef784d9a07a205ce1d7daac39d2054"></a><br></td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GIcon* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#94b7e4b63ce6c1c0f05673dd8b4adf94">gobj</a> () const </td></tr>
48
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#94b7e4b63ce6c1c0f05673dd8b4adf94"></a><br></td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#cbcfcaa91ff4d50f700267e2928a61ae">hash</a> () const </td></tr>
51
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets a hash for an icon. <a href="#cbcfcaa91ff4d50f700267e2928a61ae"></a><br></td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#7b0d721c852d1e5b0f9cd875769fabd7">to_string</a> () const </td></tr>
54
<tr><td class="mdescLeft"> </td><td class="mdescRight">Generates a textual representation of <em>icon</em> that can be used for serialization such as when passing <em>icon</em> to a different process or saving it to persistent storage. <a href="#7b0d721c852d1e5b0f9cd875769fabd7"></a><br></td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#90820057c0e8974d43d2597df18efb20">equal</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Icon.html">Icon</a>>& other) const </td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#860156dd8f8c9143cce6fba134e5d7cb">~Icon</a> ()</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">GIcon* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#02ef784d9a07a205ce1d7daac39d2054">gobj</a> ()</td></tr>
52
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#02ef784d9a07a205ce1d7daac39d2054"></a><br></td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GIcon* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#94b7e4b63ce6c1c0f05673dd8b4adf94">gobj</a> () const </td></tr>
55
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#94b7e4b63ce6c1c0f05673dd8b4adf94"></a><br></td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top">guint </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#cbcfcaa91ff4d50f700267e2928a61ae">hash</a> () const </td></tr>
58
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets a hash for an icon. <a href="#cbcfcaa91ff4d50f700267e2928a61ae"></a><br></td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00969.html#32db3d9898c44d3b3a578b560f7758cc">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#7b0d721c852d1e5b0f9cd875769fabd7">to_string</a> () const </td></tr>
61
<tr><td class="mdescLeft"> </td><td class="mdescRight">Generates a textual representation of <em>icon</em> that can be used for serialization such as when passing <em>icon</em> to a different process or saving it to persistent storage. <a href="#7b0d721c852d1e5b0f9cd875769fabd7"></a><br></td></tr>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#90820057c0e8974d43d2597df18efb20">equal</a> (const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Icon.html">Icon</a> >& other) const </td></tr>
57
64
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#bd37e490fdf4da67eb3bbe2561c16ee3">add_interface</a> (GType gtype_implementer)</td></tr>
65
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#bd37e490fdf4da67eb3bbe2561c16ee3">add_interface</a> (GType gtype_implementer)</td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Icon.html">Icon</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#8ae9b8e7b8159620eea7f9215cac83ab">create</a> (const <a class="elRef" doxygen="libstdc++.tag.xml:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/namespacestd.html#a48">std::string</a>& str)</td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Icon.html">Icon</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#8ae9b8e7b8159620eea7f9215cac83ab">create</a> (const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00969.html#32db3d9898c44d3b3a578b560f7758cc">std::string</a>& str)</td></tr>
62
69
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
63
70
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGio_1_1Icon.html">Gio::Icon</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#9f6d4523888318e40c362de6eea23004">wrap</a> (GIcon* object, bool take_copy=false)</td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGio_1_1Icon.html">Gio::Icon</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Icon.html#9f6d4523888318e40c362de6eea23004">wrap</a> (GIcon* object, bool take_copy=false)</td></tr>
66
<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="#9f6d4523888318e40c362de6eea23004"></a><br></td></tr>
73
<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="#9f6d4523888318e40c362de6eea23004"></a><br></td></tr>
68
75
<hr><a name="_details"></a><h2>Detailed Description</h2>
69
This is a very minimal interface for icons.
76
This is a very minimal interface for icons. <p>
71
77
It provides functions for checking the equality of two icons and hashing of icons. Glib::Icon does not provide the actual pixmap for the icon as this is out of GIO's scope. However implementations of <a class="el" href="classGio_1_1Icon.html" title="This is a very minimal interface for icons.">Icon</a> may contain the name of an icon (see <a class="el" href="classGio_1_1ThemedIcon.html" title="Icon theming support ThemedIcon is an implementation of Gio::Icon that supports icon...">ThemedIcon</a>), or the path to an icon (see <a class="el" href="classGio_1_1LoadableIcon.html" title="Extends the Icon interface and adds the ability to load icons from streams.">LoadableIcon</a>).<p>
72
78
To obtain a hash of an <a class="el" href="classGio_1_1Icon.html" title="This is a very minimal interface for icons.">Icon</a> instance, see <a class="el" href="classGio_1_1Icon.html#cbcfcaa91ff4d50f700267e2928a61ae" title="Gets a hash for an icon.">hash()</a>.<p>
73
79
To check if two <a class="el" href="classGio_1_1Icon.html" title="This is a very minimal interface for icons.">Icon</a> instances are equal, see <a class="el" href="classGio_1_1Icon.html#90820057c0e8974d43d2597df18efb20">equal()</a>.<p>
74
<dl class="newin2p16s" compact><dt><b><a class="el" href="newin2p16s.html#_newin2p16s000036">Since glibmm 2.16:</a></b></dt><dd></dd></dl>
80
<dl compact><dt><b><a class="el" href="since_2_16.html#_since_2_16000035">Since glibmm 2.16:</a></b></dt><dd></dd></dl>
75
81
<hr><h2>Constructor & Destructor Documentation</h2>
76
82
<a class="anchor" name="860156dd8f8c9143cce6fba134e5d7cb"></a><!-- doxytag: member="Gio::Icon::~Icon" ref="860156dd8f8c9143cce6fba134e5d7cb" args="()" -->
77
83
<div class="memitem">
78
84
<div class="memproto">
79
85
<table class="memname">
81
<td class="memname">virtual Gio::Icon::~Icon </td>
87
<td class="memname">virtual Gio::Icon::~Icon </td>
83
<td class="paramname"> </td>
84
<td> ) </td>
89
<td class="paramname"> </td>
90
<td> ) </td>
85
91
<td><code> [virtual]</code></td>