📄 gtktoolbar.html
字号:
<div class="refsect2" lang="en"><a name="id3917175"></a><h3><a name="gtk-toolbar-set-drop-highlight-item"></a>gtk_toolbar_set_drop_highlight_item ()</h3><a class="indexterm" name="id3917191"></a><pre class="programlisting">void gtk_toolbar_set_drop_highlight_item (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar, <a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> index_);</pre><p>Highlights <em class="parameter"><code>toolbar</code></em> to give an idea of what it would look likeif <em class="parameter"><code>item</code></em> was added to <em class="parameter"><code>toolbar</code></em> at the position indicated by <em class="parameter"><code>index_</code></em>. If <em class="parameter"><code>item</code></em> is <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, highlighting is turned off. In that case <em class="parameter"><code>index_</code></em> is ignored.</p><p>The <em class="parameter"><code>tool_item</code></em> passed to this function must not be part of any widgethierarchy. When an item is set as drop highlight item it can notadded to any widget hierarchy or used as highlight item for anothertoolbar.</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> :</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>tool_item</code></em> :</span></p></td><td> a <a class="link" href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to turn of highlighting</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td><td> a position 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="id3917384"></a><h3><a name="gtk-toolbar-set-show-arrow"></a>gtk_toolbar_set_show_arrow ()</h3><a class="indexterm" name="id3917400"></a><pre class="programlisting">void gtk_toolbar_set_show_arrow (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> show_arrow);</pre><p>Sets whether to show an overflow menu when<em class="parameter"><code>toolbar</code></em> doesn't have room for all items on it. If <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>,items that there are not room are available through anoverflow menu.</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> :</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>show_arrow</code></em> :</span></p></td><td> Whether to show an overflow menu</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3917504"></a><h3><a name="gtk-toolbar-set-orientation"></a>gtk_toolbar_set_orientation ()</h3><a class="indexterm" name="id3917518"></a><pre class="programlisting">void gtk_toolbar_set_orientation (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar, <a class="link" href="gtk-Standard-Enumerations.html#GtkOrientation">GtkOrientation</a> orientation);</pre><p>Sets whether a toolbar should appear horizontally or vertically.</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> :</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>orientation</code></em> :</span></p></td><td> a new <a class="link" href="gtk-Standard-Enumerations.html#GtkOrientation"><span class="type">GtkOrientation</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3917606"></a><h3><a name="gtk-toolbar-set-tooltips"></a>gtk_toolbar_set_tooltips ()</h3><a class="indexterm" name="id3917619"></a><pre class="programlisting">void gtk_toolbar_set_tooltips (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> enable);</pre><p>Sets if the tooltips of a toolbar should be active or not.</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> :</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>enable</code></em> :</span></p></td><td> set to <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to disable the tooltips, or <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to enable them.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3917720"></a><h3><a name="gtk-toolbar-unset-icon-size"></a>gtk_toolbar_unset_icon_size ()</h3><a class="indexterm" name="id3917734"></a><pre class="programlisting">void gtk_toolbar_unset_icon_size (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Unsets toolbar icon size set with <a class="link" href="GtkToolbar.html#gtk-toolbar-set-icon-size"><code class="function">gtk_toolbar_set_icon_size()</code></a>, so thatuser preferences will be used to determine the icon size.</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> :</span></p></td><td> a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3917804"></a><h3><a name="gtk-toolbar-get-show-arrow"></a>gtk_toolbar_get_show_arrow ()</h3><a class="indexterm" name="id3917819"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_toolbar_get_show_arrow (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Returns whether the toolbar has an overflow menu.See <a class="link" href="GtkToolbar.html#gtk-toolbar-set-show-arrow"><code class="function">gtk_toolbar_set_show_arrow()</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> :</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> :</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 toolbar has an overflow menu.</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3917916"></a><h3><a name="gtk-toolbar-get-orientation"></a>gtk_toolbar_get_orientation ()</h3><a class="indexterm" name="id3917929"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkOrientation">GtkOrientation</a> gtk_toolbar_get_orientation (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Retrieves the current orientation of the toolbar. See<a class="link" href="GtkToolbar.html#gtk-toolbar-set-orientation"><code class="function">gtk_toolbar_set_orientation()</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> :</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> :</span></p></td><td> the orientation</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3918009"></a><h3><a name="gtk-toolbar-get-style"></a>gtk_toolbar_get_style ()</h3><a class="indexterm" name="id3918022"></a><pre class="programlisting"><a class="link" href="gtk-Standard-Enumerations.html#GtkToolbarStyle">GtkToolbarStyle</a> gtk_toolbar_get_style (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Retrieves whether the toolbar has text, icons, or both . See<a class="link" href="GtkToolbar.html#gtk-toolbar-set-style"><code class="function">gtk_toolbar_set_style()</code></a>.</p><p></p><div class="variablelist"><table border="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -