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 <!-- ##### SECTION Stability_Level ##### -->
36 <!-- ##### STRUCT GtkNotebook ##### -->
42 <!-- ##### SIGNAL GtkNotebook::change-current-page ##### -->
47 @notebook: the object which received the signal.
51 <!-- ##### SIGNAL GtkNotebook::focus-tab ##### -->
56 @notebook: the object which received the signal.
60 <!-- ##### SIGNAL GtkNotebook::move-focus-out ##### -->
65 @notebook: the object which received the signal.
68 <!-- ##### SIGNAL GtkNotebook::page-added ##### -->
73 @notebook: the object which received the signal.
77 <!-- ##### SIGNAL GtkNotebook::page-removed ##### -->
82 @notebook: the object which received the signal.
86 <!-- ##### SIGNAL GtkNotebook::page-reordered ##### -->
91 @notebook: the object which received the signal.
95 <!-- ##### SIGNAL GtkNotebook::reorder-tab ##### -->
100 @notebook: the object which received the signal.
105 <!-- ##### SIGNAL GtkNotebook::select-page ##### -->
110 @notebook: the object which received the signal.
114 <!-- ##### SIGNAL GtkNotebook::switch-page ##### -->
116 Emitted when the user or a function changes the current page.
119 @notebook: the object which received the signal.
120 @page: the new current page
121 @page_num: the index of the page
123 <!-- ##### ARG GtkNotebook:enable-popup ##### -->
128 <!-- ##### ARG GtkNotebook:group ##### -->
133 <!-- ##### ARG GtkNotebook:group-id ##### -->
138 <!-- ##### ARG GtkNotebook:homogeneous ##### -->
143 <!-- ##### ARG GtkNotebook:page ##### -->
148 <!-- ##### ARG GtkNotebook:scrollable ##### -->
153 <!-- ##### ARG GtkNotebook:show-border ##### -->
158 <!-- ##### ARG GtkNotebook:show-tabs ##### -->
163 <!-- ##### ARG GtkNotebook:tab-border ##### -->
168 <!-- ##### ARG GtkNotebook:tab-hborder ##### -->
173 <!-- ##### ARG GtkNotebook:tab-pos ##### -->
178 <!-- ##### ARG GtkNotebook:tab-vborder ##### -->
183 <!-- ##### ARG GtkNotebook:detachable ##### -->
188 <!-- ##### ARG GtkNotebook:menu-label ##### -->
193 <!-- ##### ARG GtkNotebook:position ##### -->
198 <!-- ##### ARG GtkNotebook:reorderable ##### -->
203 <!-- ##### ARG GtkNotebook:tab-expand ##### -->
208 <!-- ##### ARG GtkNotebook:tab-fill ##### -->
213 <!-- ##### ARG GtkNotebook:tab-label ##### -->
218 <!-- ##### ARG GtkNotebook:tab-pack ##### -->
223 <!-- ##### ARG GtkNotebook:arrow-spacing ##### -->
228 <!-- ##### ARG GtkNotebook:has-backward-stepper ##### -->
233 <!-- ##### ARG GtkNotebook:has-forward-stepper ##### -->
238 <!-- ##### ARG GtkNotebook:has-secondary-backward-stepper ##### -->
243 <!-- ##### ARG GtkNotebook:has-secondary-forward-stepper ##### -->
248 <!-- ##### ARG GtkNotebook:tab-curvature ##### -->
253 <!-- ##### ARG GtkNotebook:tab-overlap ##### -->
258 <!-- ##### STRUCT GtkNotebookPage ##### -->
260 The #GtkNotebookPage is an opaque implementation detail of #GtkNotebook.
264 <!-- ##### FUNCTION gtk_notebook_new ##### -->
271 <!-- ##### FUNCTION gtk_notebook_append_page ##### -->
281 <!-- ##### FUNCTION gtk_notebook_append_page_menu ##### -->
292 <!-- ##### FUNCTION gtk_notebook_prepend_page ##### -->
302 <!-- ##### FUNCTION gtk_notebook_prepend_page_menu ##### -->
313 <!-- ##### FUNCTION gtk_notebook_insert_page ##### -->
324 <!-- ##### FUNCTION gtk_notebook_insert_page_menu ##### -->
336 <!-- ##### FUNCTION gtk_notebook_remove_page ##### -->
344 <!-- ##### MACRO gtk_notebook_current_page ##### -->
346 Deprecated compatibility macro. Use
347 gtk_notebook_get_current_page() instead.
352 <!-- ##### FUNCTION gtk_notebook_page_num ##### -->
361 <!-- ##### MACRO gtk_notebook_set_page ##### -->
363 Deprecated compatibility macro. Use
364 gtk_notebook_set_current_page() instead.
369 <!-- ##### FUNCTION gtk_notebook_next_page ##### -->
376 <!-- ##### FUNCTION gtk_notebook_prev_page ##### -->
383 <!-- ##### FUNCTION gtk_notebook_reorder_child ##### -->
392 <!-- ##### FUNCTION gtk_notebook_set_tab_pos ##### -->
396 @notebook: the notebook widget
400 <!-- ##### FUNCTION gtk_notebook_set_show_tabs ##### -->
408 <!-- ##### FUNCTION gtk_notebook_set_show_border ##### -->
416 <!-- ##### FUNCTION gtk_notebook_set_scrollable ##### -->
424 <!-- ##### FUNCTION gtk_notebook_set_tab_border ##### -->
432 <!-- ##### FUNCTION gtk_notebook_popup_enable ##### -->
439 <!-- ##### FUNCTION gtk_notebook_popup_disable ##### -->
446 <!-- ##### FUNCTION gtk_notebook_get_current_page ##### -->
450 @notebook: the notebook widget
451 @Returns: the page number
454 <!-- ##### FUNCTION gtk_notebook_get_menu_label ##### -->
463 <!-- ##### FUNCTION gtk_notebook_get_nth_page ##### -->
472 <!-- ##### FUNCTION gtk_notebook_get_n_pages ##### -->
481 <!-- ##### FUNCTION gtk_notebook_get_tab_label ##### -->
490 <!-- ##### FUNCTION gtk_notebook_query_tab_label_packing ##### -->
501 <!-- ##### FUNCTION gtk_notebook_set_homogeneous_tabs ##### -->
509 <!-- ##### FUNCTION gtk_notebook_set_menu_label ##### -->
518 <!-- ##### FUNCTION gtk_notebook_set_menu_label_text ##### -->
527 <!-- ##### FUNCTION gtk_notebook_set_tab_hborder ##### -->
535 <!-- ##### FUNCTION gtk_notebook_set_tab_label ##### -->
544 <!-- ##### FUNCTION gtk_notebook_set_tab_label_packing ##### -->
555 <!-- ##### FUNCTION gtk_notebook_set_tab_label_text ##### -->
564 <!-- ##### FUNCTION gtk_notebook_set_tab_vborder ##### -->
572 <!-- ##### FUNCTION gtk_notebook_set_tab_reorderable ##### -->
582 <!-- ##### FUNCTION gtk_notebook_set_tab_detachable ##### -->
592 <!-- ##### FUNCTION gtk_notebook_get_menu_label_text ##### -->
602 <!-- ##### FUNCTION gtk_notebook_get_scrollable ##### -->
611 <!-- ##### FUNCTION gtk_notebook_get_show_border ##### -->
620 <!-- ##### FUNCTION gtk_notebook_get_show_tabs ##### -->
629 <!-- ##### FUNCTION gtk_notebook_get_tab_label_text ##### -->
639 <!-- ##### FUNCTION gtk_notebook_get_tab_pos ##### -->
648 <!-- ##### FUNCTION gtk_notebook_get_tab_reorderable ##### -->
658 <!-- ##### FUNCTION gtk_notebook_get_tab_detachable ##### -->
668 <!-- ##### FUNCTION gtk_notebook_set_current_page ##### -->
677 <!-- ##### FUNCTION gtk_notebook_set_group_id ##### -->
686 <!-- ##### FUNCTION gtk_notebook_get_group_id ##### -->
695 <!-- ##### FUNCTION gtk_notebook_set_group ##### -->
704 <!-- ##### FUNCTION gtk_notebook_get_group ##### -->
713 <!-- ##### USER_FUNCTION GtkNotebookWindowCreationFunc ##### -->
715 A function used by GtkNotebook when a detachable tab is dropped
716 in the root window, it's used to create a window containing a notebook
717 where the tab will be attached. This function will also be responsible
718 of moving/resizing the window and adding the necessary properties to
719 the notebook (i.e.: group-id).
721 If the function returns %NULL, the drag will be cancelled.
724 @source: The source #GtkNotebook of the drag operation
725 @page: the child #GtkWidget affected
726 @x: the X coordinate where the drop happens
727 @y: the Y coordinate where the drop happens
729 @Returns: The created #GtkNotebook where the tab will be attached, or NULL to cancel the drag
732 <!-- ##### FUNCTION gtk_notebook_set_window_creation_hook ##### -->