📄 gtkicontheme.html
字号:
<tr><td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> A unique <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> associated with the given screen. This icon theme is associated with the screen and can be used as long as the screen is open. Do not ref or unref it.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3198690"></a><h3><a name="gtk-icon-theme-set-screen"></a>gtk_icon_theme_set_screen ()</h3><a class="indexterm" name="id3198706"></a><pre class="programlisting">void gtk_icon_theme_set_screen (<a class="link" href="GtkIconTheme.html" title="GtkIconTheme">GtkIconTheme</a> *icon_theme, <ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html">GdkScreen</a> *screen);</pre><p>Sets the screen for an icon theme; the screen is usedto track the user's currently configured icon theme,which might be different for different screens.</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>screen</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a></td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3198802"></a><h3><a name="gtk-icon-theme-set-search-path"></a>gtk_icon_theme_set_search_path ()</h3><a class="indexterm" name="id3198818"></a><pre class="programlisting">void gtk_icon_theme_set_search_path (<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> *path[], <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> n_elements);</pre><p>Sets the search path for the icon theme object. When lookingfor an icon theme, GTK+ will search for a subdirectory ofone or more of the directories in <em class="parameter"><code>path</code></em> with the same nameas the icon theme. (Themes from multiple of the path elementsare combined to allow themes to be extended by adding iconsin the user's home directory.)</p><p>In addition if an icon found isn't found either in the currenticon theme or the default icon theme, and an image file withthe right name is found directly in one of the elements of<em class="parameter"><code>path</code></em>, then that image will be used for the icon name.(This is legacy feature, and new icons should be putinto the default icon theme, which is called DEFAULT_THEME_NAME,rather than directly on the icon path.)</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>path</code></em> :</span></p></td><td> array of directories that are searched for icon themes</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_elements</code></em> :</span></p></td><td> number of elements in <em class="parameter"><code>path</code></em>.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3198960"></a><h3><a name="gtk-icon-theme-get-search-path"></a>gtk_icon_theme_get_search_path ()</h3><a class="indexterm" name="id3198975"></a><pre class="programlisting">void gtk_icon_theme_get_search_path (<a class="link" href="GtkIconTheme.html" title="GtkIconTheme">GtkIconTheme</a> *icon_theme, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> **path[], <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *n_elements);</pre><p>Gets the current search path. See <a class="link" href="GtkIconTheme.html#gtk-icon-theme-set-search-path"><code class="function">gtk_icon_theme_set_search_path()</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_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>path</code></em> :</span></p></td><td> location to store a list of icon theme path directories or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> The stored value should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_elements</code></em> :</span></p></td><td> location to store number of elements in <em class="parameter"><code>path</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3199136"></a><h3><a name="gtk-icon-theme-append-search-path"></a>gtk_icon_theme_append_search_path ()</h3><a class="indexterm" name="id3199153"></a><pre class="programlisting">void gtk_icon_theme_append_search_path (<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> *path);</pre><p>Appends a directory to the search path. See <a class="link" href="GtkIconTheme.html#gtk-icon-theme-set-search-path"><code class="function">gtk_icon_theme_set_search_path()</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_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>path</code></em> :</span></p></td><td> directory name to append to the icon path</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3199251"></a><h3><a name="gtk-icon-theme-prepend-search-path"></a>gtk_icon_theme_prepend_search_path ()</h3><a class="indexterm" name="id3199268"></a><pre class="programlisting">void gtk_icon_theme_prepend_search_path (<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> *path);</pre><p>Prepends a directory to the search path. See <a class="link" href="GtkIconTheme.html#gtk-icon-theme-set-search-path"><code class="function">gtk_icon_theme_set_search_path()</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_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>path</code></em> :</span></p></td><td> directory name to prepend to the icon path</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3199366"></a><h3><a name="gtk-icon-theme-set-custom-theme"></a>gtk_icon_theme_set_custom_theme ()</h3><a class="indexterm" name="id3199382"></a><pre class="programlisting">void gtk_icon_theme_set_custom_theme (<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> *theme_name);</pre><p>Sets the name of the icon theme that the <a class="link" href="GtkIconTheme.html" title="GtkIconTheme"><span class="type">GtkIconTheme</span></a> object usesoverriding system configuration. This function cannot be calledon the icon theme objects returned from <a class="link" href="GtkIconTheme.html#gtk-icon-theme-get-default"><code class="function">gtk_icon_theme_get_default()</code></a>and <a class="link" href="GtkIconTheme.html#gtk-icon-theme-get-for-screen"><code class="function">gtk_icon_theme_get_for_screen()</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_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>theme_name</code></em> :</span></p></td><td> name of icon theme to use instead of configured theme, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset a previously set custom theme</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3199515"></a><h3><a name="gtk-icon-theme-has-icon"></a>gtk_icon_theme_has_icon ()</h3><a class="indexterm" name="id3199530"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_icon_theme_has_icon (<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>Checks whether an icon theme includes an iconfor a particular name.</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -