⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtkstatusicon.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<div class="refsect2" lang="en"><a name="id3482492"></a><h3><a name="gtk-status-icon-set-from-icon-name"></a>gtk_status_icon_set_from_icon_name ()</h3><a class="indexterm" name="id3482509"></a><pre class="programlisting">void                gtk_status_icon_set_from_icon_name  (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *icon_name);</pre><p>Makes <em class="parameter"><code>status_icon</code></em> display the icon named <em class="parameter"><code>icon_name</code></em> from the current icon theme.See <a class="link" href="GtkStatusIcon.html#gtk-status-icon-new-from-icon-name"><code class="function">gtk_status_icon_new_from_icon_name()</code></a> for details.</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>icon_name</code></em>&#160;:</span></p></td><td> an icon name</td></tr></tbody></table></div><p class="since">Since  2.10 </p></div><hr><div class="refsect2" lang="en"><a name="id3482621"></a><h3><a name="gtk-status-icon-get-storage-type"></a>gtk_status_icon_get_storage_type ()</h3><a class="indexterm" name="id3482636"></a><pre class="programlisting"><a class="link" href="GtkImage.html#GtkImageType">GtkImageType</a>        gtk_status_icon_get_storage_type    (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon);</pre><p>Gets the type of representation being used by the <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a>to store image data. If the <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a> has no image data,the return value will be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the image representation being used</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3482742"></a><h3><a name="gtk-status-icon-get-pixbuf"></a>gtk_status_icon_get_pixbuf ()</h3><a class="indexterm" name="id3482757"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a>*          gtk_status_icon_get_pixbuf          (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon);</pre><p>Gets the <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> being displayed by the <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a>.The storage type of the status icon must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-PIXBUF:CAPS"><code class="literal">GTK_IMAGE_PIXBUF</code></a> (see <a class="link" href="GtkStatusIcon.html#gtk-status-icon-get-storage-type"><code class="function">gtk_status_icon_get_storage_type()</code></a>).The caller of this function does not own a reference to thereturned pixbuf.</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the displayed pixbuf, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the image is empty.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3482895"></a><h3><a name="gtk-status-icon-get-stock"></a>gtk_status_icon_get_stock ()</h3><a class="indexterm" name="id3482911"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_status_icon_get_stock           (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon);</pre><p>Gets the id of the stock icon being displayed by the <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a>.The storage type of the status icon must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-STOCK:CAPS"><code class="literal">GTK_IMAGE_STOCK</code></a> (see <a class="link" href="GtkStatusIcon.html#gtk-status-icon-get-storage-type"><code class="function">gtk_status_icon_get_storage_type()</code></a>).The returned string is owned by the <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a> and should notbe freed or modified.</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> stock id of the displayed stock icon,  or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the image is empty.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3483051"></a><h3><a name="gtk-status-icon-get-icon-name"></a>gtk_status_icon_get_icon_name ()</h3><a class="indexterm" name="id3483067"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_status_icon_get_icon_name       (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon);</pre><p>Gets the name of the icon being displayed by the <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a>.The storage type of the status icon must be <a class="link" href="GtkImage.html#GTK-IMAGE-EMPTY:CAPS"><code class="literal">GTK_IMAGE_EMPTY</code></a> or<a class="link" href="GtkImage.html#GTK-IMAGE-ICON-NAME:CAPS"><code class="literal">GTK_IMAGE_ICON_NAME</code></a> (see <a class="link" href="GtkStatusIcon.html#gtk-status-icon-get-storage-type"><code class="function">gtk_status_icon_get_storage_type()</code></a>).The returned string is owned by the <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a> and should notbe freed or modified.</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> name of the displayed icon, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if the image is empty.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3483207"></a><h3><a name="gtk-status-icon-get-size"></a>gtk_status_icon_get_size ()</h3><a class="indexterm" name="id3483222"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_status_icon_get_size            (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon);</pre><p>Gets the size in pixels that is available for the image. Stock icons and named icons adapt their size automaticallyif the size of the notification area changes. For otherstorage types, the size-changed signal can be used toreact to size changes.</p><p>Note that the returned size is only meaningful while the status icon is embedded (see <a class="link" href="GtkStatusIcon.html#gtk-status-icon-is-embedded"><code class="function">gtk_status_icon_is_embedded()</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the size that is available for the image</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3483319"></a><h3><a name="gtk-status-icon-set-screen"></a>gtk_status_icon_set_screen ()</h3><a class="indexterm" name="id3483335"></a><pre class="programlisting">void                gtk_status_icon_set_screen          (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon,                                                         <ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html">GdkScreen</a> *screen);</pre><p>Sets the <ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> where <em class="parameter"><code>status_icon</code></em> is displayed; ifthe icon is already mapped, it will be unmapped, andthen remapped on the new screen.</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>screen</code></em>&#160;:</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.12</p></div><hr><div class="refsect2" lang="en"><a name="id3483444"></a><h3><a name="gtk-status-icon-get-screen"></a>gtk_status_icon_get_screen ()</h3><a class="indexterm" name="id3483461"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html">GdkScreen</a>*          gtk_status_icon_get_screen          (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon);</pre><p>Returns the <ahref="/usr/share/gtk-doc/html/gdk/GdkScreen.html"><span class="type">GdkScreen</span></a> associated with <em class="parameter"><code>status_icon</code></em>.</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>status_icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr><tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -