GtkNotebook
Set of pages with bookmarks.
The #GtkNotebook widget is a #GtkContainer whose children are pages that
can be accessed through bookmarks. The pages are displayed all at the same
place.
#GtkContainer
For functions that apply to every #GtkContainer
(like #GtkList).
@container: the parent class object
@cur_page: the currently displayed page
@children: a GList with the children of the notebook; belonging to
#GtkNotebookPage
@first_tab:
@focus_tab:
@menu:
@panel:
@timer:
@tab_hborder:
@tab_vborder:
@show_tabs:
@homogeneous:
@show_border:
@tab_pos:
@scrollable:
@in_child:
@click_child:
@button:
@need_timer:
@child_has_focus:
@have_visible_child:
Extracts the contents of the current element of #GList @_glist_ as a
#GtkNotebookPage.
@_glist_:
The #GtkNotebookPage structure is used to store the pages of a notebook. It
is not an object.
@child: the contents of the page
@tab_label: the label shown in the bookmark
@menu_label: the label shown in the popup menu
@default_menu:
@default_tab:
@expand:
@fill:
@pack:
@requisition:
@allocation:
Creates a new #GtkNotebook widget
@Returns: the newly created G=#GtkNotebook
Appends to @notebook a page whose content is @child, and whose bookmark is
@tab_label.
@notebook: the notebook widget
@child: the content of the new page
@tab_label: the bookmark for the page
Appends to @notebook a page whose content is @child, whose bookmark is
@tab_label, and whose menu label is @menu_label.
@notebook: the notebook widget
@child: the content of the new page
@tab_label: the bookmark of the page
@menu_label: the menu label of the page
Prepends to @notebook a page whose content is @child, whose bookmark is
@tab_label, and whose menu label is @menu_label.
@notebook: the notebook widget
@child: the content of the new page
@tab_label: the bookmark of the page
Appends to @notebook a page whose content is @child, whose bookmark is
@tab_label, and whose menu label is @menu_label.
@notebook: the notebook widget
@child: the content of the new page
@tab_label: the bookmark of the page
@menu_label: the menu label of the page
Inserts in @notebook a new page whose content is @child, and whose
bookmark is @tab_label. The page is inserted just
before the page number @position, starting with 0. If @position is out of
bounds, it is assumed to be the current number of pages.
@notebook: the notebook widget
@child: the content of the new page
@tab_label: the bookmark of the page
@position: the position to insert the page
Inserts in @notebook a new page whose content is @child, whose bookmark is
@tab_label, and whose menu label is @menu_label. The page is inserted just
before the page number @position, starting with 0. If @position is out of
bounds, it is assumed to be the current number of pages.
@notebook: the notebook widget
@child: the content of the new page
@tab_label: the bookmark of the page
@menu_label: the menu label of the page
@position: the position to insert the page
Removes the page @page_num form @notebook. Pages are numbered starting at
zero. Negative values stand for the last page; too large values are
ignored.
@notebook: the notebook widget
@page_num: the page number
??? I don't see such a macro in gtknotebook.h (v1.2.3).
Returns the page number of @child in @notebook.
@notebook: the notebook widget
@child: the child
@Returns: the page number, or -1 if @child is not in @notebook
Switches to the page number @page_num. Negative values stand for the last
page; too large values are ignored.
@notebook: the notebook widget
@page_num: the page number
Switches to the next page. Nothing happens if the current page is the last
page.
@notebook: the notebook widget.
Switches to the previous page. Nothing happens if the current page is the
first page.
@notebook: the notebook widget
Moves the page @child, so that it appears in position @position. Out of
bounds @position will be clamped.
@notebook: the notebook widget
@child: the child to deplace
@position: the new position
Sets the position of the bookmarks.
@notebook: the notebook widget
@pos: the position
Sets whether to show the bookmarks or not.
@notebook: the notebook widget
@show_tabs: a boolean value
Sets whether to show the border of the notebook or not. Bookmarks are in the
border.
@notebook: the notebook widget
@show_border: a boolean value
Sets whether the bookmarks area may be scrollable or not if there are too
many bookmarks to fit in the allocated area.
@notebook: the notebook widget
@scrollable: a boolean value
Sets whether there should be a border around the bookmarks or not.
@notebook: the notebook widget
@border_width: a boolean value
Sets whether the tabs should have a horizontal border.
@notebook: the notebook widget
@tab_hborder: a boolean value
Sets whether the tabs should have a vertical border.
@notebook: the notebook widget
@tab_vborder: a boolean value
Enables the popup menu: if the user clicks with the right mouse button on
the bookmarks, a menu with all the pages will be popped up.
@notebook: the notebook widget
Disables the popup menu
@notebook: the notebook widget
Returns the page number of the current page.
@notebook: the notebook widget
@Returns: the page number
Returns the menu label of the page @child. NULL is returned if @child is not
in @notebook or NULL if it has the default menu label.
@notebook: the notebook widget
@child: the page
@Returns: the menu label
Returns the content of the page number @page_num, or NULL if @page_num is
out of bounds.
@notebook: the notebook widget
@page_num: the page number
@Returns: the content of the page
Returns the menu tab of the page @child. NULL is returned if @child is not
in @notebook or NULL if it has the default tab label.
@notebook: the notebook widget
@child: the page
@Returns: the tab label
Looks for the packing attributes of the bookmarks of @child.
@notebook: the notebook widget
@child: the page
@expand: a pointer to return the expand value (or NULL)
@fill: a pointer to return the fill value (or NULL)
@pack_type: a pointer to return the pack_type (or NULL)
Sets whether the tabs must have all the same size or not.
@notebook: the notebook widget
@homogeneous: a boolean value
Changes the menu label of @child. Nothing happens if @child is not in
@notebook.
@notebook: the notebook widget
@child: the page
@menu_label: the menu label, or NULL for default
Creates a new label and sets it as the menu label of @child.
@notebook: the notebook widget
@child: the page
@menu_text: the label text
Changes the bookmark label of @child. Nothing happens if @child is not in
@notebook.
@notebook: the notebook widget
@child: the page
@tab_label: the bookmark label, or NULL for default
Sets the packing parameters for the bookmark of @child. See
#GtkBoxPackStart for the exact meanings.
@notebook: the notebook widget
@child: the child widget
@expand: whether to expand the bookmark or not
@fill: whether the bookmark should fill the allocated area or not
@pack_type: the position of the bookmark
Creates a new label and sets it as the bookmark label of @child.
@notebook: the notebook widget
@child: the page
@tab_text: the label text
Emitted when the user or a function changes the current page.
@notebook: the object which received the signal.
@page: the new current page
@page_num: the index of the page
The current page
The position of the bookmarks
Whether the bookmarks have a border or not
Whether the bookmarks have a horizontal border or not
Whether the bookmarks have a vertical border or not
Whether to show the bookmarks or not
Whether to show the border or not
Whether the bookmarks should be scrollable or not
Whether the popup menu is enabled or not