/usr/share/gtk-doc/html/exo-1/ExoCellRendererIcon.html is in libexo-1-dev 0.10.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ExoCellRendererIcon: Exo Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Exo Reference Manual">
<link rel="up" href="exo-cell-renderers.html" title="Part IV. Additional cell renderers">
<link rel="prev" href="ExoCellRendererEllipsizedText.html" title="ExoCellRendererEllipsizedText">
<link rel="next" href="exo-jobs.html" title="Part V. Framework for threaded/asynchronous jobs">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#ExoCellRendererIcon.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#ExoCellRendererIcon.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#ExoCellRendererIcon.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="exo-cell-renderers.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ExoCellRendererEllipsizedText.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="exo-jobs.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="ExoCellRendererIcon"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="ExoCellRendererIcon.top_of_page"></a>ExoCellRendererIcon</span></h2>
<p>ExoCellRendererIcon — Renders an icon in a cell</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="ExoCellRendererIcon.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody><tr>
<td class="function_type">
<a href="http://developer.gnome.org/gtk2/GtkCellRenderer.html"><span class="returnvalue">GtkCellRenderer</span></a> *
</td>
<td class="function_name">
<a class="link" href="ExoCellRendererIcon.html#exo-cell-renderer-icon-new" title="exo_cell_renderer_icon_new ()">exo_cell_renderer_icon_new</a> <span class="c_punctuation">()</span>
</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.properties"></a><h2>Properties</h2>
<div class="informaltable"><table border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--follow-state" title="The “follow-state” property">follow-state</a></td>
<td class="property_flags">Read / Write / Construct</td>
</tr>
<tr>
<td class="property_type">
<a href="https://developer.gnome.org/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *</td>
<td class="property_name"><a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--gicon" title="The “gicon” property">gicon</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td>
<td class="property_name"><a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--icon" title="The “icon” property">icon</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></td>
<td class="property_name"><a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--size" title="The “size” property">size</a></td>
<td class="property_flags">Read / Write / Construct</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon-struct" title="struct ExoCellRendererIcon">ExoCellRendererIcon</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
<span class="lineart">╰──</span> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
<span class="lineart">╰──</span> GtkObject
<span class="lineart">╰──</span> <a href="http://developer.gnome.org/gtk2/GtkCellRenderer.html">GtkCellRenderer</a>
<span class="lineart">╰──</span> ExoCellRendererIcon
</pre>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.includes"></a><h2>Includes</h2>
<pre class="synopsis">#include <exo/exo.h>
</pre>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.description"></a><h2>Description</h2>
<p>An <a class="link" href="ExoCellRendererIcon.html" title="ExoCellRendererIcon"><span class="type">ExoCellRendererIcon</span></a> can be used to render an icon in a cell. It
allows to render either a named icon, which is looked up using the
<a href="http://developer.gnome.org/gtk2/GtkIconTheme.html"><span class="type">GtkIconTheme</span></a>, or an image file loaded from the file system. The icon
name or absolute path to the image file is set via the</p>
<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--icon" title="The “icon” property">icon</a> property.
<p>To support the <a class="link" href="ExoIconView.html" title="ExoIconView">ExoIconView</a> (and <a href="http://developer.gnome.org/gtk2/GtkIconView.html">GtkIconView</a>), <a class="link" href="ExoCellRendererIcon.html" title="ExoCellRendererIcon"><span class="type">ExoCellRendererIcon</span></a> supports
rendering icons based on the state of the view if the</p>
<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--follow-state" title="The “follow-state” property">follow-state</a><p>property is set.</p>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="exo-cell-renderer-icon-new"></a><h3>exo_cell_renderer_icon_new ()</h3>
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkCellRenderer.html"><span class="returnvalue">GtkCellRenderer</span></a> *
exo_cell_renderer_icon_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new <a class="link" href="ExoCellRendererIcon.html" title="ExoCellRendererIcon"><span class="type">ExoCellRendererIcon</span></a>. Adjust rendering parameters using object properties,
which can be set globally via <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-set"><code class="function">g_object_set()</code></a>. Also, with <a href="http://developer.gnome.org/gtk2/GtkCellLayout.html"><span class="type">GtkCellLayout</span></a> and
<a href="http://developer.gnome.org/gtk2/GtkTreeViewColumn.html"><span class="type">GtkTreeViewColumn</span></a>, you can bind a property to a value in a <a href="http://developer.gnome.org/gtk2/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a>. For example
you can bind the <a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--icon" title="The “icon” property">icon</a> property on the
cell renderer to an icon name in the model, thus rendering a different icon in each row
of the <a href="http://developer.gnome.org/gtk2/GtkTreeView.html"><span class="type">GtkTreeView</span></a>.</p>
<div class="refsect3">
<a name="id-1.5.6.9.2.5"></a><h4>Returns</h4>
<p> the newly allocated <a class="link" href="ExoCellRendererIcon.html" title="ExoCellRendererIcon"><span class="type">ExoCellRendererIcon</span></a>.</p>
</div>
<p class="since">Since: 0.3.1.9</p>
</div>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="ExoCellRendererIcon-struct"></a><h3>struct ExoCellRendererIcon</h3>
<pre class="programlisting">struct ExoCellRendererIcon;</pre>
<p>The <a class="link" href="ExoIconChooserDialog.html" title="ExoIconChooserDialog"><span class="type">ExoIconChooserDialog</span></a> struct contains only private fields and
should not be directly accessed.</p>
</div>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="ExoCellRendererIcon--follow-state"></a><h3>The <code class="literal">“follow-state”</code> property</h3>
<pre class="programlisting"> “follow-state” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Specifies whether the icon renderer should render icon based on the
selection state of the items. This is necessary for <a class="link" href="ExoIconView.html" title="ExoIconView"><span class="type">ExoIconView</span></a>,
which doesn't draw any item state indicators itself.</p>
<p>Flags: Read / Write / Construct</p>
<p>Default value: TRUE</p>
<p class="since">Since: 0.3.1.9</p>
</div>
<hr>
<div class="refsect2">
<a name="ExoCellRendererIcon--gicon"></a><h3>The <code class="literal">“gicon”</code> property</h3>
<pre class="programlisting"> “gicon” <a href="https://developer.gnome.org/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> *</pre>
<p>The <a href="https://developer.gnome.org/gio/unstable/GIcon.html"><span class="type">GIcon</span></a> to render. May also be <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in which case no icon will be
rendered for the cell.</p>
<p>Currently only <a href="https://developer.gnome.org/gio/unstable/GThemedIcon.html"><span class="type">GThemedIcon</span></a>s are supported which are loaded
using the current icon theme.</p>
<p>Flags: Read / Write</p>
<p class="since">Since: 0.4.0</p>
</div>
<hr>
<div class="refsect2">
<a name="ExoCellRendererIcon--icon"></a><h3>The <code class="literal">“icon”</code> property</h3>
<pre class="programlisting"> “icon” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre>
<p>The name of the themed icon to render or an absolute path to an image file
to render. May also be <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in which case no icon will be rendered for the
cell.</p>
<p>Image files are loaded via the thumbnail database, creating a thumbnail
as necessary. The thumbnail database is also used to load scalable icons
in the icon theme, because loading scalable icons is quite expensive
these days.</p>
<p>Flags: Read / Write</p>
<p>Default value: NULL</p>
<p class="since">Since: 0.3.1.9</p>
</div>
<hr>
<div class="refsect2">
<a name="ExoCellRendererIcon--size"></a><h3>The <code class="literal">“size”</code> property</h3>
<pre class="programlisting"> “size” <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a></pre>
<p>The size in pixel at which to render the icon. This is also the fixed
size that the renderer will request no matter if the actual icons are
smaller than this size.</p>
<p>This improves the performance of the layouting in the icon and tree
view, because during the layouting phase no icons will need to be
loaded, but the icons will only be loaded when they need to be rendered,
i.e. the view scrolls to the cell.</p>
<p>Flags: Read / Write / Construct</p>
<p>Allowed values: >= 1</p>
<p>Default value: 48</p>
<p class="since">Since: 0.3.1.9</p>
</div>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.see-also"></a><h2>See Also</h2>
<a class="link" href="ExoIconView.html" title="ExoIconView">ExoIconView</a>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>
|