/usr/share/gtk-doc/html/exo-1/ExoCellRendererIcon.html is in libexo-1-dev 0.6.2-4.
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 | <!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</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.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.17 (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="2">
<tr valign="middle">
<td><a accesskey="p" href="ExoCellRendererEllipsizedText.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="exo-cell-renderers.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Exo Reference Manual</th>
<td><a accesskey="n" href="exo-jobs.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#ExoCellRendererIcon.synopsis" class="shortcut">Top</a>
|
<a href="#ExoCellRendererIcon.description" class="shortcut">Description</a>
|
<a href="#ExoCellRendererIcon.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#ExoCellRendererIcon.properties" class="shortcut">Properties</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 valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="ExoCellRendererIcon.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <exo/exo.h>
<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon-struct" title="ExoCellRendererIcon">ExoCellRendererIcon</a>;
<span class="returnvalue">GtkCellRenderer</span> * <a class="link" href="ExoCellRendererIcon.html#exo-cell-renderer-icon-new" title="exo_cell_renderer_icon_new ()">exo_cell_renderer_icon_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
</pre>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkCellRenderer
+----ExoCellRendererIcon
</pre>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--follow-state" title='The "follow-state" property'>follow-state</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--gicon" title='The "gicon" property'>gicon</a>" <span class="type">GIcon</span>* : Read / Write
"<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--icon" title='The "icon" property'>icon</a>" <span class="type">gchar</span>* : Read / Write
"<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--size" title='The "size" property'>size</a>" <span class="type">gint</span> : Read / Write / Construct
</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
<span class="type">GtkIconTheme</span>, or an image file loaded from the file system. The icon
name or absolute path to the image file is set via the
<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--icon" title='The "icon" property'>icon</a> property.
</p>
<p>
To support the <a class="link" href="ExoIconView.html" title="ExoIconView">ExoIconView</a> (and GtkIconView), <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
<a class="link" href="ExoCellRendererIcon.html#ExoCellRendererIcon--follow-state" title='The "follow-state" property'>follow-state</a>
property is set.
</p>
</div>
<div class="refsect1">
<a name="ExoCellRendererIcon.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="ExoCellRendererIcon-struct"></a><h3>ExoCellRendererIcon</h3>
<pre class="programlisting">typedef struct _ExoCellRendererIcon 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>
<hr>
<div class="refsect2">
<a name="exo-cell-renderer-icon-new"></a><h3>exo_cell_renderer_icon_new ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkCellRenderer</span> * 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 <code class="function">g_object_set()</code>. Also, with <span class="type">GtkCellLayout</span> and
<span class="type">GtkTreeViewColumn</span>, you can bind a property to a value in a <span class="type">GtkTreeModel</span>. 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 <span class="type">GtkTreeView</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the newly allocated <a class="link" href="ExoCellRendererIcon.html" title="ExoCellRendererIcon"><span class="type">ExoCellRendererIcon</span></a>.</td>
</tr></tbody>
</table></div>
<p class="since">Since 0.3.1.9</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" <span class="type">gboolean</span> : Read / Write / Construct</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>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" <span class="type">GIcon</span>* : Read / Write</pre>
<p>
The <span class="type">GIcon</span> to render. May also be <code class="literal">NULL</code> in which case no icon will be
rendered for the cell.
</p>
<p>
Currently only <span class="type">GThemedIcon</span>s are supported which are loaded
using the current icon theme.
</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" <span class="type">gchar</span>* : Read / Write</pre>
<p>
The name of the themed icon to render or an absolute path to an image file
to render. May also be <code class="literal">NULL</code> 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>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" <span class="type">gint</span> : Read / Write / Construct</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>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.17</div>
</body>
</html>
|