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. Use
122 gtk_notebook_get_current_page() instead.
127 <!-- ##### FUNCTION gtk_notebook_page_num ##### -->
136 <!-- ##### MACRO gtk_notebook_set_page ##### -->
138 Deprecated compatibility macro. Use
139 gtk_notebook_set_current_page() instead.
144 <!-- ##### FUNCTION gtk_notebook_next_page ##### -->
151 <!-- ##### FUNCTION gtk_notebook_prev_page ##### -->
158 <!-- ##### FUNCTION gtk_notebook_reorder_child ##### -->
167 <!-- ##### FUNCTION gtk_notebook_set_tab_pos ##### -->
171 @notebook: the notebook widget
175 <!-- ##### FUNCTION gtk_notebook_set_show_tabs ##### -->
183 <!-- ##### FUNCTION gtk_notebook_set_show_border ##### -->
191 <!-- ##### FUNCTION gtk_notebook_set_scrollable ##### -->
199 <!-- ##### FUNCTION gtk_notebook_set_tab_border ##### -->
207 <!-- ##### FUNCTION gtk_notebook_popup_enable ##### -->
214 <!-- ##### FUNCTION gtk_notebook_popup_disable ##### -->
221 <!-- ##### FUNCTION gtk_notebook_get_current_page ##### -->
225 @notebook: the notebook widget
226 @Returns: the page number
229 <!-- ##### FUNCTION gtk_notebook_get_menu_label ##### -->
238 <!-- ##### FUNCTION gtk_notebook_get_nth_page ##### -->
247 <!-- ##### FUNCTION gtk_notebook_get_tab_label ##### -->
256 <!-- ##### FUNCTION gtk_notebook_query_tab_label_packing ##### -->
267 <!-- ##### FUNCTION gtk_notebook_set_homogeneous_tabs ##### -->
275 <!-- ##### FUNCTION gtk_notebook_set_menu_label ##### -->
284 <!-- ##### FUNCTION gtk_notebook_set_menu_label_text ##### -->
293 <!-- ##### FUNCTION gtk_notebook_set_tab_hborder ##### -->
301 <!-- ##### FUNCTION gtk_notebook_set_tab_label ##### -->
310 <!-- ##### FUNCTION gtk_notebook_set_tab_label_packing ##### -->
321 <!-- ##### FUNCTION gtk_notebook_set_tab_label_text ##### -->
330 <!-- ##### FUNCTION gtk_notebook_set_tab_vborder ##### -->
338 <!-- ##### FUNCTION gtk_notebook_get_menu_label_text ##### -->
348 <!-- ##### FUNCTION gtk_notebook_get_scrollable ##### -->
357 <!-- ##### FUNCTION gtk_notebook_get_show_border ##### -->
366 <!-- ##### FUNCTION gtk_notebook_get_show_tabs ##### -->
375 <!-- ##### FUNCTION gtk_notebook_get_tab_label_text ##### -->
385 <!-- ##### FUNCTION gtk_notebook_get_tab_pos ##### -->
394 <!-- ##### FUNCTION gtk_notebook_set_current_page ##### -->
403 <!-- ##### SIGNAL GtkNotebook::change-current-page ##### -->
408 @notebook: the object which received the signal.
410 <!-- # Unused Parameters # -->
413 <!-- ##### SIGNAL GtkNotebook::focus-tab ##### -->
418 @notebook: the object which received the signal.
422 <!-- ##### SIGNAL GtkNotebook::move-focus-out ##### -->
427 @notebook: the object which received the signal.
430 <!-- ##### SIGNAL GtkNotebook::select-page ##### -->
435 @notebook: the object which received the signal.
439 <!-- ##### SIGNAL GtkNotebook::switch-page ##### -->
441 Emitted when the user or a function changes the current page.
444 @notebook: the object which received the signal.
445 @page: the new current page
446 @page_num: the index of the page
448 <!-- ##### ARG GtkNotebook:tab-pos ##### -->
450 The edge at which the tabs for switching pages are drawn.
453 <!-- ##### ARG GtkNotebook:show-tabs ##### -->
455 Whether to show tabs for the notebook pages.
458 <!-- ##### ARG GtkNotebook:show-border ##### -->
460 Whether to draw a bevel around the noteobook.
463 <!-- ##### ARG GtkNotebook:scrollable ##### -->
465 Whether the tab label area will have arrows for scrolling if there
466 are too many tabs to fit in the area.
469 <!-- ##### ARG GtkNotebook:tab-border ##### -->
471 Whether the tab labels have a border on all sides.
474 <!-- ##### ARG GtkNotebook:tab-hborder ##### -->
476 Whether the tab labels have a horizontal border.
479 <!-- ##### ARG GtkNotebook:tab-vborder ##### -->
481 Whether the tab labels have a vertical border.
484 <!-- ##### ARG GtkNotebook:page ##### -->
489 <!-- ##### ARG GtkNotebook:enable-popup ##### -->
491 Whether the popup menu for switching pages is enabled.
494 <!-- ##### ARG GtkNotebook:homogeneous ##### -->
496 whether the tabs must have all the same size.