1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A tabbed notebook container.
7 <!-- ##### SECTION Long_Description ##### -->
9 The #GtkNotebook widget is a #GtkContainer whose children are pages that
10 can be switched between using tab labels along one edge.
13 There are many configuration options for #GtkNotebook. Among other
14 things, you can choose on which edge the tabs appear
15 (see gtk_notebook_set_tab_pos()), whether, if there are too many
16 tabs to fit the noteobook should be made bigger or scrolling
17 arrows added (see gtk_notebook_set_scrollable), and whether there
18 will be a popup menu allowing the users to switch pages.
19 (see gtk_notebook_enable_popup(), gtk_noteobook_disable_popup())
22 <!-- ##### SECTION See_Also ##### -->
26 <term>#GtkContainer</term>
27 <listitem><para>For functions that apply to every #GtkContainer
28 (like #GtkList).</para></listitem>
33 <!-- ##### STRUCT GtkNotebook ##### -->
39 <!-- ##### STRUCT GtkNotebookPage ##### -->
41 The #GtkNotebookPage is an opaque implementation detail of #GtkNotebook.
45 <!-- ##### FUNCTION gtk_notebook_new ##### -->
52 <!-- ##### FUNCTION gtk_notebook_append_page ##### -->
61 <!-- ##### FUNCTION gtk_notebook_append_page_menu ##### -->
71 <!-- ##### FUNCTION gtk_notebook_prepend_page ##### -->
80 <!-- ##### FUNCTION gtk_notebook_prepend_page_menu ##### -->
90 <!-- ##### FUNCTION gtk_notebook_insert_page ##### -->
100 <!-- ##### FUNCTION gtk_notebook_insert_page_menu ##### -->
111 <!-- ##### FUNCTION gtk_notebook_remove_page ##### -->
119 <!-- ##### MACRO gtk_notebook_current_page ##### -->
121 Deprecated compatibility macro.
126 <!-- ##### FUNCTION gtk_notebook_page_num ##### -->
135 <!-- ##### MACRO gtk_notebook_set_page ##### -->
139 <!-- # Unused Parameters # -->
144 <!-- ##### FUNCTION gtk_notebook_next_page ##### -->
151 <!-- ##### FUNCTION gtk_notebook_prev_page ##### -->
158 <!-- ##### FUNCTION gtk_notebook_reorder_child ##### -->
169 <!-- ##### FUNCTION gtk_notebook_set_tab_pos ##### -->
173 @notebook: the notebook widget
177 <!-- ##### FUNCTION gtk_notebook_set_show_tabs ##### -->
185 <!-- ##### FUNCTION gtk_notebook_set_show_border ##### -->
193 <!-- ##### FUNCTION gtk_notebook_set_scrollable ##### -->
201 <!-- ##### FUNCTION gtk_notebook_set_tab_border ##### -->
209 <!-- ##### FUNCTION gtk_notebook_popup_enable ##### -->
216 <!-- ##### FUNCTION gtk_notebook_popup_disable ##### -->
223 <!-- ##### FUNCTION gtk_notebook_get_current_page ##### -->
227 @notebook: the notebook widget
228 @Returns: the page number
231 <!-- ##### FUNCTION gtk_notebook_get_menu_label ##### -->
240 <!-- ##### FUNCTION gtk_notebook_get_nth_page ##### -->
249 <!-- ##### FUNCTION gtk_notebook_get_tab_label ##### -->
258 <!-- ##### FUNCTION gtk_notebook_query_tab_label_packing ##### -->
269 <!-- ##### FUNCTION gtk_notebook_set_homogeneous_tabs ##### -->
277 <!-- ##### FUNCTION gtk_notebook_set_menu_label ##### -->
286 <!-- ##### FUNCTION gtk_notebook_set_menu_label_text ##### -->
295 <!-- ##### FUNCTION gtk_notebook_set_tab_hborder ##### -->
303 <!-- ##### FUNCTION gtk_notebook_set_tab_label ##### -->
312 <!-- ##### FUNCTION gtk_notebook_set_tab_label_packing ##### -->
323 <!-- ##### FUNCTION gtk_notebook_set_tab_label_text ##### -->
332 <!-- ##### FUNCTION gtk_notebook_set_tab_vborder ##### -->
340 <!-- ##### FUNCTION gtk_notebook_get_menu_label_text ##### -->
350 <!-- ##### FUNCTION gtk_notebook_get_scrollable ##### -->
359 <!-- ##### FUNCTION gtk_notebook_get_show_border ##### -->
368 <!-- ##### FUNCTION gtk_notebook_get_show_tabs ##### -->
377 <!-- ##### FUNCTION gtk_notebook_get_tab_label_text ##### -->
387 <!-- ##### FUNCTION gtk_notebook_get_tab_pos ##### -->
396 <!-- ##### FUNCTION gtk_notebook_set_current_page ##### -->
405 <!-- ##### SIGNAL GtkNotebook::focus-tab ##### -->
410 @notebook: the object which received the signal.
413 <!-- ##### SIGNAL GtkNotebook::select-page ##### -->
418 @notebook: the object which received the signal.
421 <!-- ##### SIGNAL GtkNotebook::switch-page ##### -->
423 Emitted when the user or a function changes the current page.
426 @notebook: the object which received the signal.
427 @page: the new current page
428 @page_num: the index of the page
430 <!-- ##### ARG GtkNotebook:tab-pos ##### -->
432 The edge at which the tabs for switching pages are drawn.
435 <!-- ##### ARG GtkNotebook:show-tabs ##### -->
437 Whether to show tabs for the notebook pages.
440 <!-- ##### ARG GtkNotebook:show-border ##### -->
442 Whether to draw a bevel around the noteobook.
445 <!-- ##### ARG GtkNotebook:scrollable ##### -->
447 Whether the tab label area will have arrows for scrolling if there
448 are too many tabs to fit in the area.
451 <!-- ##### ARG GtkNotebook:tab-border ##### -->
453 Whether the tab labels have a border on all sides.
456 <!-- ##### ARG GtkNotebook:tab-hborder ##### -->
458 Whether the tab labels have a horizontal border.
461 <!-- ##### ARG GtkNotebook:tab-vborder ##### -->
463 Whether the tab labels have a vertical border.
466 <!-- ##### ARG GtkNotebook:page ##### -->
471 <!-- ##### ARG GtkNotebook:enable-popup ##### -->
473 Whether the popup menu for switching pages is enabled.
476 <!-- ##### ARG GtkNotebook:homogeneous ##### -->
478 whether the tabs must have all the same size.