📄 gtkicontheme.html
字号:
with <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>.</td></tr></tbody></table></div><p class="since">Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3200494"></a><h3><a name="gtk-icon-theme-list-icons"></a>gtk_icon_theme_list_icons ()</h3><a class="indexterm" name="id3200511"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>* gtk_icon_theme_list_icons (<a class="link" href="GtkIconTheme.html" title="GtkIconTheme">GtkIconTheme</a> *icon_theme, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *context);</pre><p>Lists the icons in the current icon theme. Only a subsetof the icons can be listed by providing a context string.The set of values for the context string is system dependent,but will typically include such values as "Applications" and"MimeTypes".</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon_theme</code></em> :</span></p></td><td> a <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td><td> a string identifying a particular type of icon, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to list all icons.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> list holding the names of all the icons in the theme. You must first free each element in the list with <ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>, then free the list itself with <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3200653"></a><h3><a name="gtk-icon-theme-get-icon-sizes"></a>gtk_icon_theme_get_icon_sizes ()</h3><a class="indexterm" name="id3200669"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>* gtk_icon_theme_get_icon_sizes (<a class="link" href="GtkIconTheme.html" title="GtkIconTheme">GtkIconTheme</a> *icon_theme, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *icon_name);</pre><p>Returns an array of integers describing the sizes at whichthe icon is available without scaling. A size of -1 means that the icon is available in a scalable format. The array is zero-terminated.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon_theme</code></em> :</span></p></td><td> a <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>icon_name</code></em> :</span></p></td><td> the name of an icon</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> An newly allocated array describing the sizes atwhich the icon is available. The array should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>when it is no longer needed.</td></tr></tbody></table></div><p class="since">Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3200782"></a><h3><a name="gtk-icon-theme-get-example-icon-name"></a>gtk_icon_theme_get_example_icon_name ()</h3><a class="indexterm" name="id3200799"></a><pre class="programlisting">char* gtk_icon_theme_get_example_icon_name (<a class="link" href="GtkIconTheme.html" title="GtkIconTheme">GtkIconTheme</a> *icon_theme);</pre><p>Gets the name of an icon that is representative of thecurrent theme (for instance, to use when presentinga list of themes to the user.)</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon_theme</code></em> :</span></p></td><td> a <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the name of an example icon or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. Free with <ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3200898"></a><h3><a name="gtk-icon-theme-rescan-if-needed"></a>gtk_icon_theme_rescan_if_needed ()</h3><a class="indexterm" name="id3200914"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_icon_theme_rescan_if_needed (<a class="link" href="GtkIconTheme.html" title="GtkIconTheme">GtkIconTheme</a> *icon_theme);</pre><p>Checks to see if the icon theme has changed; if it has, anycurrently cached information is discarded and will be reloadednext time <em class="parameter"><code>icon_theme</code></em> is accessed.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon_theme</code></em> :</span></p></td><td> a <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the icon theme has changed and needed to be reloaded.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3201009"></a><h3><a name="gtk-icon-theme-add-builtin-icon"></a>gtk_icon_theme_add_builtin_icon ()</h3><a class="indexterm" name="id3201025"></a><pre class="programlisting">void gtk_icon_theme_add_builtin_icon (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *icon_name, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> size, <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a> *pixbuf);</pre><p>Registers a built-in icon for icon theme lookups. The ideaof built-in icons is to allow an application or librarythat uses themed icons to function requiring files tobe present in the file system. For instance, the defaultimages for all of GTK+'s stock icons are registeredas built-icons.</p><p>In general, if you use <a class="link" href="GtkIconTheme.html#gtk-icon-theme-add-builtin-icon"><code class="function">gtk_icon_theme_add_builtin_icon()</code></a>you should also install the icon in the icon theme, sothat the icon is generally available.</p><p>This function will generally be used with pixbufs loadedvia <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-creating.html#gdk-pixbuf-new-from-inline"><code class="function">gdk_pixbuf_new_from_inline()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon_name</code></em> :</span></p></td><td> the name of the icon to register</td></tr><tr><td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td><td> the size at which to register the icon (different images can be registered for the same icon name at different sizes.)</td></tr><tr><td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> that contains the image to use for <em class="parameter"><code>icon_name</code></em>.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3201181"></a><h3><a name="gtk-icon-info-copy"></a>gtk_icon_info_copy ()</h3><a class="indexterm" name="id3201195"></a><pre class="programlisting"><a class="link" href="GtkIconTheme.html#GtkIconInfo">GtkIconInfo</a>* gtk_icon_info_copy (<a class="link" href="GtkIconTheme.html#GtkIconInfo">GtkIconInfo</a> *icon_info);</pre><p>Make a copy of a <a class="link" href="GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>icon_info</code></em> :</span></p></td><td> a <a class="link" href="GtkIconTheme.html#GtkIconInfo"><span class="type">GtkIconInfo</span></a></td></tr><tr><td><p
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -