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

📄 gtktoolbar.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>toolbar</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the current style of <em class="parameter"><code>toolbar</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3918107"></a><h3><a name="gtk-toolbar-get-icon-size"></a>gtk_toolbar_get_icon_size ()</h3><a class="indexterm" name="id3918121"></a><pre class="programlisting"><a class="link" href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a>         gtk_toolbar_get_icon_size           (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Retrieves the icon size for the toolbar. See <a class="link" href="GtkToolbar.html#gtk-toolbar-set-icon-size"><code class="function">gtk_toolbar_set_icon_size()</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>toolbar</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the current icon size for the icons on the toolbar.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3918200"></a><h3><a name="gtk-toolbar-get-tooltips"></a>gtk_toolbar_get_tooltips ()</h3><a class="indexterm" name="id3918214"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_toolbar_get_tooltips            (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Retrieves whether tooltips are enabled. See<a class="link" href="GtkToolbar.html#gtk-toolbar-set-tooltips"><code class="function">gtk_toolbar_set_tooltips()</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>toolbar</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if tooltips are enabled</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3918303"></a><h3><a name="gtk-toolbar-get-relief-style"></a>gtk_toolbar_get_relief_style ()</h3><a class="indexterm" name="id3918319"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkReliefStyle">GtkReliefStyle</a>      gtk_toolbar_get_relief_style        (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Returns the relief style of buttons on <em class="parameter"><code>toolbar</code></em>. See<a class="link" href="GtkButton.html#gtk-button-set-relief"><code class="function">gtk_button_set_relief()</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>toolbar</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The relief style of buttons on <em class="parameter"><code>toolbar</code></em>.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3918417"></a><h3><a name="gtk-toolbar-append-item"></a>gtk_toolbar_append_item ()</h3><a class="indexterm" name="id3918432"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_toolbar_append_item             (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar,                                                         const char *text,                                                         const char *tooltip_text,                                                         const char *tooltip_private_text,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *icon,                                                         <a class="link" href="gtk-Types.html#GtkSignalFunc">GtkSignalFunc</a> callback,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_toolbar_append_item</code> is deprecated and should not be used in newly-written code.</p></div><p>Inserts a new item into the toolbar. You must specify the positionin the toolbar where it will be inserted.</p><p><em class="parameter"><code>callback</code></em> must be a pointer to a function taking a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> and a gpointer asarguments. Use the <a class="link" href="gtk-Types.html#GTK-SIGNAL-FUNC:CAPS"><code class="function">GTK_SIGNAL_FUNC()</code></a> to cast the function to <a class="link" href="gtk-Types.html#GtkSignalFunc"><span class="type">GtkSignalFunc</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>toolbar</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> give your toolbar button a label.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tooltip_text</code></em>&#160;:</span></p></td><td> a string that appears when the user holds the mouse over this item.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tooltip_private_text</code></em>&#160;:</span></p></td><td> use with <a class="link" href="GtkTipsQuery.html" title="GtkTipsQuery"><span class="type">GtkTipsQuery</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> that should be used as the button's icon.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>callback</code></em>&#160;:</span></p></td><td> the function to be executed when the button is pressed.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td><td> a pointer to any data you wish to be passed to the callback.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the new toolbar item as a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3918711"></a><h3><a name="gtk-toolbar-prepend-item"></a>gtk_toolbar_prepend_item ()</h3><a class="indexterm" name="id3918727"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_toolbar_prepend_item            (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar,                                                         const char *text,                                                         const char *tooltip_text,                                                         const char *tooltip_private_text,                                                         <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *icon,                                                         <a class="link" href="gtk-Types.html#GtkSignalFunc">GtkSignalFunc</a> callback,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_toolbar_prepend_item</code> is deprecated and should not be used in newly-written code.</p></div><p>Adds a new button to the beginning (top or left edges) of the given toolbar.</p><p><em class="parameter"><code>callback</code></em> must be a pointer to a function taking a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> and a gpointer asarguments. Use the <a class="link" href="gtk-Types.html#GTK-SIGNAL-FUNC:CAPS"><code class="function">GTK_SIGNAL_FUNC()</code></a> to cast the function to <a class="link" href="gtk-Types.html#GtkSignalFunc"><span class="type">GtkSignalFunc</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>toolbar</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> give your toolbar button a label.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tooltip_text</code></em>&#160;:</span></p></td><td> a string that appears when the user holds the mouse over this item.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tooltip_private_text</code></em>&#160;:</span></p></td><td> use with <a class="link" href="GtkTipsQuery.html" title="GtkTipsQuery"><span class="type">GtkTipsQuery</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>icon</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> that should be used as the button's icon.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>callback</code></em>&#160;:</span></p></td><td> the function to be executed when the button is pressed.</td></tr><tr><td><p><span class="term"><em class="

⌨️ 快捷键说明

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