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

📄 gtktoolbar.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
  GtkToolbarChildType type;  GtkWidget *widget;  GtkWidget *icon;  GtkWidget *label;} GtkToolbarChild;</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">GtkToolbarChild</code> is deprecated and should not be used in newly-written code.</p></div><p></p></div><hr><div class="refsect2" lang="en"><a name="id3916377"></a><h3><a name="gtk-toolbar-new"></a>gtk_toolbar_new ()</h3><a class="indexterm" name="id3916390"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_toolbar_new                     (void);</pre><p>Creates a new toolbar.</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 newly-created toolbar.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3916430"></a><h3><a name="gtk-toolbar-insert"></a>gtk_toolbar_insert ()</h3><a class="indexterm" name="id3916445"></a><pre class="programlisting">void                gtk_toolbar_insert                  (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar,                                                         <a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *item,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> pos);</pre><p>Insert a <a class="link" href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> into the toolbar at position <em class="parameter"><code>pos</code></em>. If <em class="parameter"><code>pos</code></em> is0 the item is prepended to the start of the toolbar. If <em class="parameter"><code>pos</code></em> isnegative, the item is appended to the end of the toolbar.</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>item</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>pos</code></em>&#160;:</span></p></td><td> the position of the new item</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3916587"></a><h3><a name="gtk-toolbar-get-item-index"></a>gtk_toolbar_get_item_index ()</h3><a class="indexterm" name="id3916603"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_toolbar_get_item_index          (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar,                                                         <a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a> *item);</pre><p>Returns the position of <em class="parameter"><code>item</code></em> on the toolbar, starting from 0.It is an error if <em class="parameter"><code>item</code></em> is not a child of the toolbar.</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>item</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> that is a child of <em class="parameter"><code>toolbar</code></em></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the position of item on the toolbar.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3916727"></a><h3><a name="gtk-toolbar-get-n-items"></a>gtk_toolbar_get_n_items ()</h3><a class="indexterm" name="id3916742"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_toolbar_get_n_items             (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar);</pre><p>Returns the number of items on the toolbar.</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 number of items on the toolbar</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3916818"></a><h3><a name="gtk-toolbar-get-nth-item"></a>gtk_toolbar_get_nth_item ()</h3><a class="indexterm" name="id3916833"></a><pre class="programlisting"><a class="link" href="GtkToolItem.html" title="GtkToolItem">GtkToolItem</a>*        gtk_toolbar_get_nth_item            (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> n);</pre><p>Returns the <em class="parameter"><code>n</code></em>'th item on <em class="parameter"><code>toolbar</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if thetoolbar does not contain an <em class="parameter"><code>n</code></em>'th item.</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>n</code></em>&#160;:</span></p></td><td> A position on the toolbar</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The <em class="parameter"><code>n</code></em>'th <a class="link" href="GtkToolItem.html" title="GtkToolItem"><span class="type">GtkToolItem</span></a> on <em class="parameter"><code>toolbar</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> if thereisn't an <em class="parameter"><code>n</code></em>'th item.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3916999"></a><h3><a name="gtk-toolbar-get-drop-index"></a>gtk_toolbar_get_drop_index ()</h3><a class="indexterm" name="id3917015"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_toolbar_get_drop_index          (<a class="link" href="GtkToolbar.html" title="GtkToolbar">GtkToolbar</a> *toolbar,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> x,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> y);</pre><p>Returns the position corresponding to the indicated point on<em class="parameter"><code>toolbar</code></em>. This is useful when dragging items to the toolbar:this function returns the position a new item should beinserted.</p><p><em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> are in <em class="parameter"><code>toolbar</code></em> coordinates.</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>x</code></em>&#160;:</span></p></td><td> x coordinate of a point on the toolbar</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td><td> y coordinate of a point on the toolbar</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The position corresponding to the point (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) on the toolbar.</td></tr></tbody></table></div><p class="since">Since  2.4</p></div><hr>

⌨️ 快捷键说明

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