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

📄 gtkstatusicon.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
><span class="type">GObject</span></a>. Making it a widget would be impractical, since the system trayon Win32 doesn't allow to embed arbitrary widgets.</p></div><div class="refsect1" lang="en"><a name="id3481544"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3481554"></a><h3><a name="GtkStatusIcon-struct"></a>GtkStatusIcon</h3><a class="indexterm" name="id3481568"></a><pre class="programlisting">typedef struct _GtkStatusIcon GtkStatusIcon;</pre><p></p></div><hr><div class="refsect2" lang="en"><a name="id3481583"></a><h3><a name="gtk-status-icon-new"></a>gtk_status_icon_new ()</h3><a class="indexterm" name="id3481598"></a><pre class="programlisting"><a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a>*      gtk_status_icon_new                 (void);</pre><p>Creates an empty status icon object.</p><p></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>&#160;:</span></p></td><td> a new <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3481653"></a><h3><a name="gtk-status-icon-new-from-pixbuf"></a>gtk_status_icon_new_from_pixbuf ()</h3><a class="indexterm" name="id3481669"></a><pre class="programlisting"><a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a>*      gtk_status_icon_new_from_pixbuf     (<ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a> *pixbuf);</pre><p>Creates a status icon displaying <em class="parameter"><code>pixbuf</code></em>. </p><p>The image will be scaled down to fit in the available space in the notification area, if necessary.</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>pixbuf</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3481764"></a><h3><a name="gtk-status-icon-new-from-file"></a>gtk_status_icon_new_from_file ()</h3><a class="indexterm" name="id3481779"></a><pre class="programlisting"><a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a>*      gtk_status_icon_new_from_file       (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *filename);</pre><p>Creates a status icon displaying the file <em class="parameter"><code>filename</code></em>. </p><p>The image will be scaled down to fit in the available space in the notification area, if necessary.</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>filename</code></em>&#160;:</span></p></td><td> a filename</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3481867"></a><h3><a name="gtk-status-icon-new-from-stock"></a>gtk_status_icon_new_from_stock ()</h3><a class="indexterm" name="id3481883"></a><pre class="programlisting"><a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a>*      gtk_status_icon_new_from_stock      (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *stock_id);</pre><p>Creates a status icon displaying a stock icon. Sample stock iconnames are <a class="link" href="gtk-Stock-Items.html#GTK-STOCK-OPEN:CAPS"><span class="type">GTK_STOCK_OPEN</span></a>, <a class="link" href="gtk-Stock-Items.html#GTK-STOCK-QUIT:CAPS"><span class="type">GTK_STOCK_QUIT</span></a>. You can register your own stock icon names, see <a class="link" href="gtk-Themeable-Stock-Images.html#gtk-icon-factory-add-default"><code class="function">gtk_icon_factory_add_default()</code></a> and <a class="link" href="gtk-Themeable-Stock-Images.html#gtk-icon-factory-add"><code class="function">gtk_icon_factory_add()</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>stock_id</code></em>&#160;:</span></p></td><td> a stock icon id</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3482000"></a><h3><a name="gtk-status-icon-new-from-icon-name"></a>gtk_status_icon_new_from_icon_name ()</h3><a class="indexterm" name="id3482016"></a><pre class="programlisting"><a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a>*      gtk_status_icon_new_from_icon_name  (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *icon_name);</pre><p>Creates a status icon displaying an icon from the current icon theme.If the current icon theme is changed, the icon will be updated appropriately.</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>&#160;:</span></p></td><td> an icon name</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon"><span class="type">GtkStatusIcon</span></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id3482094"></a><h3><a name="gtk-status-icon-set-from-pixbuf"></a>gtk_status_icon_set_from_pixbuf ()</h3><a class="indexterm" name="id3482109"></a><pre class="programlisting">void                gtk_status_icon_set_from_pixbuf     (<a class="link" href="GtkStatusIcon.html" title="GtkStatusIcon">GtkStatusIcon</a> *status_icon,                                                         <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf">GdkPixbuf</a> *pixbuf);</pre><p>Makes <em class="parameter"><code>status_icon</code></em> display <em class="parameter"><code>pixbuf</code></em>. See <a class="link" href="GtkStatusIcon.html#gtk-status-icon-new-from-pixbuf"><code class="function">gtk_status_icon_new_from_pixbuf()</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>pixbuf</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> 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.10</p></div><hr><div class="refsect2" lang="en"><a name="id3482238"></a><h3><a name="gtk-status-icon-set-from-file"></a>gtk_status_icon_set_from_file ()</h3><a class="indexterm" name="id3482253"></a><pre class="programlisting">void                gtk_status_icon_set_from_file       (<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> *filename);</pre><p>Makes <em class="parameter"><code>status_icon</code></em> display the file <em class="parameter"><code>filename</code></em>.See <a class="link" href="GtkStatusIcon.html#gtk-status-icon-new-from-file"><code class="function">gtk_status_icon_new_from_file()</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>filename</code></em>&#160;:</span></p></td><td> a filename</td></tr></tbody></table></div><p class="since">Since  2.10 </p></div><hr><div class="refsect2" lang="en"><a name="id3482365"></a><h3><a name="gtk-status-icon-set-from-stock"></a>gtk_status_icon_set_from_stock ()</h3><a class="indexterm" name="id3482381"></a><pre class="programlisting">void                gtk_status_icon_set_from_stock      (<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> *stock_id);</pre><p>Makes <em class="parameter"><code>status_icon</code></em> display the stock icon with the id <em class="parameter"><code>stock_id</code></em>.See <a class="link" href="GtkStatusIcon.html#gtk-status-icon-new-from-stock"><code class="function">gtk_status_icon_new_from_stock()</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>stock_id</code></em>&#160;:</span></p></td><td> a stock icon id</td></tr></tbody></table></div><p class="since">Since  2.10 </p></div><hr>

⌨️ 快捷键说明

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