📄 gtknotebook.html
字号:
a newly created label with the same text as <em class="parameter"><code>tab_label</code></em>; If <em class="parameter"><code>tab_label</code></em> is not a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>, <em class="parameter"><code>menu_label</code></em> must be specified if the page-switch menu is to be used.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the index (starting from 0) of the appendedpage in the notebook, or -1 if function fails</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4079933"></a><h3><a name="gtk-notebook-prepend-page"></a>gtk_notebook_prepend_page ()</h3><a class="indexterm" name="id4079947"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_notebook_prepend_page (<a class="link" href="GtkNotebook.html" title="GtkNotebook">GtkNotebook</a> *notebook, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *tab_label);</pre><p>Prepends a page to <em class="parameter"><code>notebook</code></em>.</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>notebook</code></em> :</span></p></td><td> a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to use as the contents of the page.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tab_label</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be used as the label for the page, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to use the default label, 'page N'.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the index (starting from 0) of the prependedpage in the notebook, or -1 if function fails</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4080093"></a><h3><a name="gtk-notebook-prepend-page-menu"></a>gtk_notebook_prepend_page_menu ()</h3><a class="indexterm" name="id4080107"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_notebook_prepend_page_menu (<a class="link" href="GtkNotebook.html" title="GtkNotebook">GtkNotebook</a> *notebook, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *tab_label, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *menu_label);</pre><p>Prepends a page to <em class="parameter"><code>notebook</code></em>, specifying the widget to use as thelabel in the popup 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>notebook</code></em> :</span></p></td><td> a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to use as the contents of the page.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tab_label</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be used as the label for the page, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to use the default label, 'page N'.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>menu_label</code></em> :</span></p></td><td> the widget to use as a label for the page-switch menu, if that is enabled. If <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, and <em class="parameter"><code>tab_label</code></em> is a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the menu label will be a newly created label with the same text as <em class="parameter"><code>tab_label</code></em>; If <em class="parameter"><code>tab_label</code></em> is not a <a class="link" href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>, <em class="parameter"><code>menu_label</code></em> must be specified if the page-switch menu is to be used.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the index (starting from 0) of the prependedpage in the notebook, or -1 if function fails</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4080341"></a><h3><a name="gtk-notebook-insert-page"></a>gtk_notebook_insert_page ()</h3><a class="indexterm" name="id4080355"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_notebook_insert_page (<a class="link" href="GtkNotebook.html" title="GtkNotebook">GtkNotebook</a> *notebook, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *tab_label, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> position);</pre><p>Insert a page into <em class="parameter"><code>notebook</code></em> at the given position.</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>notebook</code></em> :</span></p></td><td> a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to use as the contents of the page.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tab_label</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be used as the label for the page, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to use the default label, 'page N'.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>position</code></em> :</span></p></td><td> the index (starting at 0) at which to insert the page, or -1 to append the page after all other pages.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the index (starting from 0) of the insertedpage in the notebook, or -1 if function fails</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4080525"></a><h3><a name="gtk-notebook-insert-page-menu"></a>gtk_notebook_insert_page_menu ()</h3><a class="indexterm" name="id4080539"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_notebook_insert_page_menu (<a class="link" href="GtkNotebook.html" title="GtkNotebook">GtkNotebook</a> *notebook, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *tab_label, <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *menu_label, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> position);</pre><p>Insert a page into <em class="parameter"><code>notebook</code></em> at the given position, specifyingthe widget to use as the label in the popup 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>notebook</code></em> :</span></p></td><td> a <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to use as the contents of the page.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>tab_label</code></em> :</span></p></td><td> the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> to be used as the label for the page, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to use the default label, 'page N'.</td></tr><tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -