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

📄 gtktoolitem.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<p>Creates a new <a class="link" href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a></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> the new <a class="link" href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a></td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3933701"></a><h3><a name="gtk-tool-item-set-homogeneous"></a>gtk_tool_item_set_homogeneous ()</h3><a class="indexterm" name="id3933717"></a><pre class="programlisting">void                gtk_tool_item_set_homogeneous       (<a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> homogeneous);</pre><p>Sets whether <em class="parameter"><code>tool_item</code></em> is to be allocated the same size as otherhomogeneous items. The effect is that all homogeneous items will havethe same width as the widest of the items.</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>tool_item</code></em>&#160;:</span></p></td><td> a <span class="type">""</span> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>homogeneous</code></em>&#160;:</span></p></td><td> whether <em class="parameter"><code>tool_item</code></em> is the same size as other homogeneous items</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3933820"></a><h3><a name="gtk-tool-item-get-homogeneous"></a>gtk_tool_item_get_homogeneous ()</h3><a class="indexterm" name="id3933836"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_tool_item_get_homogeneous       (<a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre><p>Returns whether <em class="parameter"><code>tool_item</code></em> is the same size as other homogeneousitems. See <a class="link" href="GtkToolItem.html#gtk-tool-item-set-homogeneous"><code class="function">gtk_tool_item_set_homogeneous()</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>tool_item</code></em>&#160;:</span></p></td><td> a <span class="type">""</span> </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 the item is the same size as other homogeneousitem.s</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3933939"></a><h3><a name="gtk-tool-item-set-expand"></a>gtk_tool_item_set_expand ()</h3><a class="indexterm" name="id3933955"></a><pre class="programlisting">void                gtk_tool_item_set_expand            (<a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> expand);</pre><p>Sets whether <em class="parameter"><code>tool_item</code></em> is allocated extra space when thereis more room on the toolbar then needed for the items. Theeffect is that the item gets bigger when the toolbar gets biggerand smaller when the toolbar gets smaller.</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>tool_item</code></em>&#160;:</span></p></td><td> a <span class="type">""</span> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>expand</code></em>&#160;:</span></p></td><td> Whether <em class="parameter"><code>tool_item</code></em> is allocated extra space</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3934056"></a><h3><a name="gtk-tool-item-get-expand"></a>gtk_tool_item_get_expand ()</h3><a class="indexterm" name="id3934072"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_tool_item_get_expand            (<a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item);</pre><p>Returns whether <em class="parameter"><code>tool_item</code></em> is allocated extra space.See <a class="link" href="GtkToolItem.html#gtk-tool-item-set-expand"><code class="function">gtk_tool_item_set_expand()</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>tool_item</code></em>&#160;:</span></p></td><td> a <span class="type">""</span> </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 <em class="parameter"><code>tool_item</code></em> is allocated extra space.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3934180"></a><h3><a name="gtk-tool-item-set-tooltip"></a>gtk_tool_item_set_tooltip ()</h3><a class="indexterm" name="id3934197"></a><a class="indexterm" name="id3934205"></a><pre class="programlisting">void                gtk_tool_item_set_tooltip           (<a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,                                                         <a class="link" href="GtkTooltips.html" title="GtkTooltips">GtkTooltips</a> *tooltips,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *tip_text,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *tip_private);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_tool_item_set_tooltip</code> has been deprecated since version 2.12 and should not be used in newly-written code. Use <a class="link" href="GtkToolItem.html#gtk-tool-item-set-tooltip-text"><code class="function">gtk_tool_item_set_tooltip_text()</code></a> instead.</p></div><p>Sets the <a class="link" href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a> object to be used for <em class="parameter"><code>tool_item</code></em>, thetext to be displayed as tooltip on the item and the private textto be used. See <a class="link" href="GtkTooltips.html#gtk-tooltips-set-tip"><code class="function">gtk_tooltips_set_tip()</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>tool_item</code></em>&#160;:</span></p></td><td> a <span class="type">""</span> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>tooltips</code></em>&#160;:</span></p></td><td> The <a class="link" href="GtkTooltips.html" title="GtkTooltips"><span class="type">GtkTooltips</span></a> object to be used</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tip_text</code></em>&#160;:</span></p></td><td> text to be used as tooltip text for <em class="parameter"><code>tool_item</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>tip_private</code></em>&#160;:</span></p></td><td> text to be used as private tooltip text</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3934399"></a><h3><a name="gtk-tool-item-set-tooltip-text"></a>gtk_tool_item_set_tooltip_text ()</h3><a class="indexterm" name="id3934415"></a><pre class="programlisting">void                gtk_tool_item_set_tooltip_text      (<a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *text);</pre><p>Sets the text to be displayed as tooltip on the item.See <a class="link" href="GtkWidget.html#gtk-widget-set-tooltip-text"><code class="function">gtk_widget_set_tooltip_text()</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>tool_item</code></em>&#160;:</span></p></td><td> a <span class="type">""</span> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> text to be used as tooltip for <em class="parameter"><code>tool_item</code></em></td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3934522"></a><h3><a name="gtk-tool-item-set-tooltip-markup"></a>gtk_tool_item_set_tooltip_markup ()</h3><a class="indexterm" name="id3934537"></a><pre class="programlisting">void                gtk_tool_item_set_tooltip_markup    (<a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *tool_item,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *markup);</pre><p>Sets the markup text to be displayed as tooltip on the item.See <a class="link" href="GtkWidget.html#gtk-widget-set-tooltip-markup"><code class="function">gtk_widget_set_tooltip_markup()</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>tool_item</code></em>&#160;:</span></p></td><td> a <span class="type">""</span> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>markup</code></em>&#160;:</span></p></td><td> markup text to be used as tooltip for <em class="parameter"><code>tool_item</code></em></td>

⌨️ 快捷键说明

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