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

📄 gtknotebook.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read  "<a class="link" href="GtkNotebook.html#GtkNotebook--has-backward-stepper">has-backward-stepper</a>"     <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read  "<a class="link" href="GtkNotebook.html#GtkNotebook--has-forward-stepper">has-forward-stepper</a>"      <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read  "<a class="link" href="GtkNotebook.html#GtkNotebook--has-secondary-backward-stepper">has-secondary-backward-stepper</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read  "<a class="link" href="GtkNotebook.html#GtkNotebook--has-secondary-forward-stepper">has-secondary-forward-stepper</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read  "<a class="link" href="GtkNotebook.html#GtkNotebook--tab-curvature">tab-curvature</a>"            <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read  "<a class="link" href="GtkNotebook.html#GtkNotebook--tab-overlap">tab-overlap</a>"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read</pre></div><div class="refsect1" lang="en"><a name="id4079123"></a><h2>Signals</h2><pre class="synopsis">  "<a class="link" href="GtkNotebook.html#GtkNotebook-change-current-page">change-current-page</a>"                            : Run Last / Action  "<a class="link" href="GtkNotebook.html#GtkNotebook-create-window">create-window</a>"                                  : Run Last  "<a class="link" href="GtkNotebook.html#GtkNotebook-focus-tab">focus-tab</a>"                                      : Run Last / Action  "<a class="link" href="GtkNotebook.html#GtkNotebook-move-focus-out">move-focus-out</a>"                                 : Run Last / Action  "<a class="link" href="GtkNotebook.html#GtkNotebook-page-added">page-added</a>"                                     : Run Last  "<a class="link" href="GtkNotebook.html#GtkNotebook-page-removed">page-removed</a>"                                   : Run Last  "<a class="link" href="GtkNotebook.html#GtkNotebook-page-reordered">page-reordered</a>"                                 : Run Last  "<a class="link" href="GtkNotebook.html#GtkNotebook-reorder-tab">reorder-tab</a>"                                    : Run Last / Action  "<a class="link" href="GtkNotebook.html#GtkNotebook-select-page">select-page</a>"                                    : Run Last / Action  "<a class="link" href="GtkNotebook.html#GtkNotebook-switch-page">switch-page</a>"                                    : Run Last</pre></div><div class="refsect1" lang="en"><a name="id4079248"></a><h2>Description</h2><p>The <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a> widget is a <a class="link" href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> whose children are pages thatcan be switched between using tab labels along one edge.</p><p>There are many configuration options for <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a>. Among otherthings, you can choose on which edge the tabs appear(see <a class="link" href="GtkNotebook.html#gtk-notebook-set-tab-pos"><code class="function">gtk_notebook_set_tab_pos()</code></a>), whether, if there are too manytabs to fit the noteobook should be made bigger or scrollingarrows added (see gtk_notebook_set_scrollable), and whether therewill be a popup menu allowing the users to switch pages.(see <a class="link" href="GtkNotebook.html#gtk-notebook-popup-enable"><code class="function">gtk_notebook_popup_enable()</code></a>, <code class="function">gtk_noteobook_popup_disable()</code>)</p><div class="refsect2" lang="en"><a name="GtkNotebook-BUILDER-UI"></a><h3>GtkNotebook as GtkBuildable</h3><p>The GtkNoteboopk implementation of the GtkBuildable interfacesupports placing children into tabs by specifying "tab" as the"type" attribute of a &lt;child&gt; element. Note that the contentof the tab must be created before the tab can be filled.A tab child can be specified without specifying a &lt;child&gt; type attribute.</p><div class="example"><a name="id4079352"></a><p class="title"><b>Example&#160;36.&#160;A UI definition fragment with GtkNotebook</b></p><div class="example-contents"><pre class="programlisting">&lt;object class="GtkNotebook"&gt;  &lt;child&gt;    &lt;object class="GtkLabel" id="notebook-content"&gt;      &lt;property name="label"&gt;Content&lt;/property&gt;    &lt;/object&gt;  &lt;/child&gt;  &lt;child type="tab"&gt;    &lt;object class="GtkLabel" id="notebook-tab"&gt;      &lt;property name="label"&gt;Tab&lt;/property&gt;    &lt;/object&gt;  &lt;/child&gt;&lt;/object&gt;</pre></div></div><br class="example-break"></div></div><div class="refsect1" lang="en"><a name="id4079366"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id4079382"></a><h3><a name="GtkNotebook-struct"></a>GtkNotebook</h3><a class="indexterm" name="id4079396"></a><pre class="programlisting">typedef struct _GtkNotebook GtkNotebook;</pre><p></p></div><hr><div class="refsect2" lang="en"><a name="id4079411"></a><h3><a name="GtkNotebookPage"></a>GtkNotebookPage</h3><a class="indexterm" name="id4079424"></a><pre class="programlisting">typedef struct _GtkNotebookPage GtkNotebookPage;</pre><p>The <a class="link" href="GtkNotebook.html#GtkNotebookPage"><span class="type">GtkNotebookPage</span></a> is an opaque implementation detail of <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a>.</p></div><hr><div class="refsect2" lang="en"><a name="id4079456"></a><h3><a name="gtk-notebook-new"></a>gtk_notebook_new ()</h3><a class="indexterm" name="id4079469"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_notebook_new                    (void);</pre><p>Creates a new <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a> widget with no pages.</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 <a class="link" href="GtkNotebook.html" title="GtkNotebook"><span class="type">GtkNotebook</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4079525"></a><h3><a name="gtk-notebook-append-page"></a>gtk_notebook_append_page ()</h3><a class="indexterm" name="id4079538"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_notebook_append_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>Appends 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>&#160;:</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>&#160;:</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>&#160;:</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>&#160;:</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="id4079685"></a><h3><a name="gtk-notebook-append-page-menu"></a>gtk_notebook_append_page_menu ()</h3><a class="indexterm" name="id4079699"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_notebook_append_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>Appends 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>&#160;:</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>&#160;:</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>&#160;:</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>&#160;:</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

⌨️ 快捷键说明

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