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.
50 <!-- ##### SIGNAL GtkNotebook::focus-tab ##### -->
55 @notebook: the object which received the signal.
59 <!-- ##### SIGNAL GtkNotebook::move-focus-out ##### -->
64 @notebook: the object which received the signal.
67 <!-- ##### SIGNAL GtkNotebook::page-added ##### -->
72 @notebook: the object which received the signal.
76 <!-- ##### SIGNAL GtkNotebook::page-removed ##### -->
81 @notebook: the object which received the signal.
85 <!-- ##### SIGNAL GtkNotebook::page-reordered ##### -->
90 @notebook: the object which received the signal.
94 <!-- ##### SIGNAL GtkNotebook::reorder-tab ##### -->
99 @notebook: the object which received the signal.
106 <!-- ##### SIGNAL GtkNotebook::select-page ##### -->
111 @notebook: the object which received the signal.
115 <!-- ##### SIGNAL GtkNotebook::switch-page ##### -->
117 Emitted when the user or a function changes the current page.
120 @notebook: the object which received the signal.
121 @page: the new current page
122 @page_num: the index of the page
124 <!-- ##### ARG GtkNotebook:enable-popup ##### -->
129 <!-- ##### ARG GtkNotebook:group-id ##### -->
134 <!-- ##### ARG GtkNotebook:homogeneous ##### -->
139 <!-- ##### ARG GtkNotebook:page ##### -->
144 <!-- ##### ARG GtkNotebook:scrollable ##### -->
149 <!-- ##### ARG GtkNotebook:show-border ##### -->
154 <!-- ##### ARG GtkNotebook:show-tabs ##### -->
159 <!-- ##### ARG GtkNotebook:tab-border ##### -->
164 <!-- ##### ARG GtkNotebook:tab-hborder ##### -->
169 <!-- ##### ARG GtkNotebook:tab-pos ##### -->
174 <!-- ##### ARG GtkNotebook:tab-vborder ##### -->
179 <!-- ##### ARG GtkNotebook:detachable ##### -->
184 <!-- ##### ARG GtkNotebook:menu-label ##### -->
189 <!-- ##### ARG GtkNotebook:position ##### -->
194 <!-- ##### ARG GtkNotebook:reorderable ##### -->
199 <!-- ##### ARG GtkNotebook:tab-expand ##### -->
204 <!-- ##### ARG GtkNotebook:tab-fill ##### -->
209 <!-- ##### ARG GtkNotebook:tab-label ##### -->
214 <!-- ##### ARG GtkNotebook:tab-pack ##### -->
219 <!-- ##### ARG GtkNotebook:has-backward-stepper ##### -->
224 <!-- ##### ARG GtkNotebook:has-forward-stepper ##### -->
229 <!-- ##### ARG GtkNotebook:has-secondary-backward-stepper ##### -->
234 <!-- ##### ARG GtkNotebook:has-secondary-forward-stepper ##### -->
239 <!-- ##### ARG GtkNotebook:tab-curvature ##### -->
244 <!-- ##### ARG GtkNotebook:tab-overlap ##### -->
249 <!-- ##### STRUCT GtkNotebookPage ##### -->
251 The #GtkNotebookPage is an opaque implementation detail of #GtkNotebook.
255 <!-- ##### FUNCTION gtk_notebook_new ##### -->
262 <!-- ##### FUNCTION gtk_notebook_append_page ##### -->
272 <!-- ##### FUNCTION gtk_notebook_append_page_menu ##### -->
283 <!-- ##### FUNCTION gtk_notebook_prepend_page ##### -->
293 <!-- ##### FUNCTION gtk_notebook_prepend_page_menu ##### -->
304 <!-- ##### FUNCTION gtk_notebook_insert_page ##### -->
315 <!-- ##### FUNCTION gtk_notebook_insert_page_menu ##### -->
327 <!-- ##### FUNCTION gtk_notebook_remove_page ##### -->
335 <!-- ##### MACRO gtk_notebook_current_page ##### -->
337 Deprecated compatibility macro. Use
338 gtk_notebook_get_current_page() instead.
343 <!-- ##### FUNCTION gtk_notebook_page_num ##### -->
352 <!-- ##### MACRO gtk_notebook_set_page ##### -->
354 Deprecated compatibility macro. Use
355 gtk_notebook_set_current_page() instead.
360 <!-- ##### FUNCTION gtk_notebook_next_page ##### -->
367 <!-- ##### FUNCTION gtk_notebook_prev_page ##### -->
374 <!-- ##### FUNCTION gtk_notebook_reorder_child ##### -->
383 <!-- ##### FUNCTION gtk_notebook_set_tab_pos ##### -->
387 @notebook: the notebook widget
391 <!-- ##### FUNCTION gtk_notebook_set_show_tabs ##### -->
399 <!-- ##### FUNCTION gtk_notebook_set_show_border ##### -->
407 <!-- ##### FUNCTION gtk_notebook_set_scrollable ##### -->
415 <!-- ##### FUNCTION gtk_notebook_set_tab_border ##### -->
423 <!-- ##### FUNCTION gtk_notebook_popup_enable ##### -->
430 <!-- ##### FUNCTION gtk_notebook_popup_disable ##### -->
437 <!-- ##### FUNCTION gtk_notebook_get_current_page ##### -->
441 @notebook: the notebook widget
442 @Returns: the page number
445 <!-- ##### FUNCTION gtk_notebook_get_menu_label ##### -->
454 <!-- ##### FUNCTION gtk_notebook_get_nth_page ##### -->
463 <!-- ##### FUNCTION gtk_notebook_get_n_pages ##### -->
472 <!-- ##### FUNCTION gtk_notebook_get_tab_label ##### -->
481 <!-- ##### FUNCTION gtk_notebook_query_tab_label_packing ##### -->
492 <!-- ##### FUNCTION gtk_notebook_set_homogeneous_tabs ##### -->
500 <!-- ##### FUNCTION gtk_notebook_set_menu_label ##### -->
509 <!-- ##### FUNCTION gtk_notebook_set_menu_label_text ##### -->
518 <!-- ##### FUNCTION gtk_notebook_set_tab_hborder ##### -->
526 <!-- ##### FUNCTION gtk_notebook_set_tab_label ##### -->
535 <!-- ##### FUNCTION gtk_notebook_set_tab_label_packing ##### -->
546 <!-- ##### FUNCTION gtk_notebook_set_tab_label_text ##### -->
555 <!-- ##### FUNCTION gtk_notebook_set_tab_vborder ##### -->
563 <!-- ##### FUNCTION gtk_notebook_set_tab_reorderable ##### -->
573 <!-- ##### FUNCTION gtk_notebook_set_tab_detachable ##### -->
583 <!-- ##### FUNCTION gtk_notebook_get_menu_label_text ##### -->
593 <!-- ##### FUNCTION gtk_notebook_get_scrollable ##### -->
602 <!-- ##### FUNCTION gtk_notebook_get_show_border ##### -->
611 <!-- ##### FUNCTION gtk_notebook_get_show_tabs ##### -->
620 <!-- ##### FUNCTION gtk_notebook_get_tab_label_text ##### -->
630 <!-- ##### FUNCTION gtk_notebook_get_tab_pos ##### -->
639 <!-- ##### FUNCTION gtk_notebook_get_tab_reorderable ##### -->
649 <!-- ##### FUNCTION gtk_notebook_get_tab_detachable ##### -->
659 <!-- ##### FUNCTION gtk_notebook_set_current_page ##### -->
668 <!-- ##### FUNCTION gtk_notebook_set_group_id ##### -->
677 <!-- ##### FUNCTION gtk_notebook_get_group_id ##### -->
686 <!-- ##### USER_FUNCTION GtkNotebookWindowCreationFunc ##### -->
688 A function used by GtkNotebook when a detachable tab is dropped
689 in the root window, it's used to create a window containing a notebook
690 where the tab will be attached. This function will also be responsible
691 of moving/resizing the window and adding the necessary properties to
692 the notebook (i.e.: group-id).
694 If the function returns %NULL, the drag will be cancelled.
697 @source: The source #GtkNotebook of the drag operation
698 @page: the child #GtkWidget affected
699 @x: the X coordinate where the drop happens
700 @y: the Y coordinate where the drop happens
702 @Returns: The created #GtkNotebook where the tab will be attached, or NULL to cancel the drag
705 <!-- ##### FUNCTION gtk_notebook_set_window_creation_hook ##### -->