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.
103 <!-- ##### SIGNAL GtkNotebook::select-page ##### -->
108 @notebook: the object which received the signal.
112 <!-- ##### SIGNAL GtkNotebook::switch-page ##### -->
114 Emitted when the user or a function changes the current page.
117 @notebook: the object which received the signal.
118 @page: the new current page
119 @page_num: the index of the page
121 <!-- ##### ARG GtkNotebook:enable-popup ##### -->
126 <!-- ##### ARG GtkNotebook:group-id ##### -->
131 <!-- ##### ARG GtkNotebook:homogeneous ##### -->
136 <!-- ##### ARG GtkNotebook:page ##### -->
141 <!-- ##### ARG GtkNotebook:scrollable ##### -->
146 <!-- ##### ARG GtkNotebook:show-border ##### -->
151 <!-- ##### ARG GtkNotebook:show-tabs ##### -->
156 <!-- ##### ARG GtkNotebook:tab-border ##### -->
161 <!-- ##### ARG GtkNotebook:tab-hborder ##### -->
166 <!-- ##### ARG GtkNotebook:tab-pos ##### -->
171 <!-- ##### ARG GtkNotebook:tab-vborder ##### -->
176 <!-- ##### ARG GtkNotebook:detachable ##### -->
181 <!-- ##### ARG GtkNotebook:menu-label ##### -->
186 <!-- ##### ARG GtkNotebook:position ##### -->
191 <!-- ##### ARG GtkNotebook:reorderable ##### -->
196 <!-- ##### ARG GtkNotebook:tab-expand ##### -->
201 <!-- ##### ARG GtkNotebook:tab-fill ##### -->
206 <!-- ##### ARG GtkNotebook:tab-label ##### -->
211 <!-- ##### ARG GtkNotebook:tab-pack ##### -->
216 <!-- ##### ARG GtkNotebook:arrow-spacing ##### -->
221 <!-- ##### ARG GtkNotebook:has-backward-stepper ##### -->
226 <!-- ##### ARG GtkNotebook:has-forward-stepper ##### -->
231 <!-- ##### ARG GtkNotebook:has-secondary-backward-stepper ##### -->
236 <!-- ##### ARG GtkNotebook:has-secondary-forward-stepper ##### -->
241 <!-- ##### ARG GtkNotebook:tab-curvature ##### -->
246 <!-- ##### ARG GtkNotebook:tab-overlap ##### -->
251 <!-- ##### STRUCT GtkNotebookPage ##### -->
253 The #GtkNotebookPage is an opaque implementation detail of #GtkNotebook.
257 <!-- ##### FUNCTION gtk_notebook_new ##### -->
264 <!-- ##### FUNCTION gtk_notebook_append_page ##### -->
274 <!-- ##### FUNCTION gtk_notebook_append_page_menu ##### -->
285 <!-- ##### FUNCTION gtk_notebook_prepend_page ##### -->
295 <!-- ##### FUNCTION gtk_notebook_prepend_page_menu ##### -->
306 <!-- ##### FUNCTION gtk_notebook_insert_page ##### -->
317 <!-- ##### FUNCTION gtk_notebook_insert_page_menu ##### -->
329 <!-- ##### FUNCTION gtk_notebook_remove_page ##### -->
337 <!-- ##### MACRO gtk_notebook_current_page ##### -->
339 Deprecated compatibility macro. Use
340 gtk_notebook_get_current_page() instead.
345 <!-- ##### FUNCTION gtk_notebook_page_num ##### -->
354 <!-- ##### MACRO gtk_notebook_set_page ##### -->
356 Deprecated compatibility macro. Use
357 gtk_notebook_set_current_page() instead.
362 <!-- ##### FUNCTION gtk_notebook_next_page ##### -->
369 <!-- ##### FUNCTION gtk_notebook_prev_page ##### -->
376 <!-- ##### FUNCTION gtk_notebook_reorder_child ##### -->
385 <!-- ##### FUNCTION gtk_notebook_set_tab_pos ##### -->
389 @notebook: the notebook widget
393 <!-- ##### FUNCTION gtk_notebook_set_show_tabs ##### -->
401 <!-- ##### FUNCTION gtk_notebook_set_show_border ##### -->
409 <!-- ##### FUNCTION gtk_notebook_set_scrollable ##### -->
417 <!-- ##### FUNCTION gtk_notebook_set_tab_border ##### -->
425 <!-- ##### FUNCTION gtk_notebook_popup_enable ##### -->
432 <!-- ##### FUNCTION gtk_notebook_popup_disable ##### -->
439 <!-- ##### FUNCTION gtk_notebook_get_current_page ##### -->
443 @notebook: the notebook widget
444 @Returns: the page number
447 <!-- ##### FUNCTION gtk_notebook_get_menu_label ##### -->
456 <!-- ##### FUNCTION gtk_notebook_get_nth_page ##### -->
465 <!-- ##### FUNCTION gtk_notebook_get_n_pages ##### -->
474 <!-- ##### FUNCTION gtk_notebook_get_tab_label ##### -->
483 <!-- ##### FUNCTION gtk_notebook_query_tab_label_packing ##### -->
494 <!-- ##### FUNCTION gtk_notebook_set_homogeneous_tabs ##### -->
502 <!-- ##### FUNCTION gtk_notebook_set_menu_label ##### -->
511 <!-- ##### FUNCTION gtk_notebook_set_menu_label_text ##### -->
520 <!-- ##### FUNCTION gtk_notebook_set_tab_hborder ##### -->
528 <!-- ##### FUNCTION gtk_notebook_set_tab_label ##### -->
537 <!-- ##### FUNCTION gtk_notebook_set_tab_label_packing ##### -->
548 <!-- ##### FUNCTION gtk_notebook_set_tab_label_text ##### -->
557 <!-- ##### FUNCTION gtk_notebook_set_tab_vborder ##### -->
565 <!-- ##### FUNCTION gtk_notebook_set_tab_reorderable ##### -->
575 <!-- ##### FUNCTION gtk_notebook_set_tab_detachable ##### -->
585 <!-- ##### FUNCTION gtk_notebook_get_menu_label_text ##### -->
595 <!-- ##### FUNCTION gtk_notebook_get_scrollable ##### -->
604 <!-- ##### FUNCTION gtk_notebook_get_show_border ##### -->
613 <!-- ##### FUNCTION gtk_notebook_get_show_tabs ##### -->
622 <!-- ##### FUNCTION gtk_notebook_get_tab_label_text ##### -->
632 <!-- ##### FUNCTION gtk_notebook_get_tab_pos ##### -->
641 <!-- ##### FUNCTION gtk_notebook_get_tab_reorderable ##### -->
651 <!-- ##### FUNCTION gtk_notebook_get_tab_detachable ##### -->
661 <!-- ##### FUNCTION gtk_notebook_set_current_page ##### -->
670 <!-- ##### FUNCTION gtk_notebook_set_group_id ##### -->
679 <!-- ##### FUNCTION gtk_notebook_get_group_id ##### -->
688 <!-- ##### USER_FUNCTION GtkNotebookWindowCreationFunc ##### -->
690 A function used by GtkNotebook when a detachable tab is dropped
691 in the root window, it's used to create a window containing a notebook
692 where the tab will be attached. This function will also be responsible
693 of moving/resizing the window and adding the necessary properties to
694 the notebook (i.e.: group-id).
696 If the function returns %NULL, the drag will be cancelled.
699 @source: The source #GtkNotebook of the drag operation
700 @page: the child #GtkWidget affected
701 @x: the X coordinate where the drop happens
702 @y: the Y coordinate where the drop happens
704 @Returns: The created #GtkNotebook where the tab will be attached, or NULL to cancel the drag
707 <!-- ##### FUNCTION gtk_notebook_set_window_creation_hook ##### -->