Details
GTK_NOTEBOOK_PAGE()
#define GTK_NOTEBOOK_PAGE(_glist_) ((GtkNotebookPage *)((GList *)(_glist_))->data) |
Extracts the contents of the current element of GList _glist_ as a
GtkNotebookPage.
struct GtkNotebookPage
struct GtkNotebookPage
{
GtkWidget *child;
GtkWidget *tab_label;
GtkWidget *menu_label;
guint default_menu : 1;
guint default_tab : 1;
guint expand : 1;
guint fill : 1;
guint pack : 1;
GtkRequisition requisition;
GtkAllocation allocation;
}; |
The GtkNotebookPage structure is used to store the pages of a notebook. It
is not an object.
gtk_notebook_append_page ()
Appends to notebook a page whose content is child, and whose bookmark is
tab_label.
gtk_notebook_append_page_menu ()
Appends to notebook a page whose content is child, whose bookmark is
tab_label, and whose menu label is menu_label.
gtk_notebook_prepend_page ()
Prepends to notebook a page whose content is child, whose bookmark is
tab_label, and whose menu label is menu_label.
gtk_notebook_prepend_page_menu ()
Appends to notebook a page whose content is child, whose bookmark is
tab_label, and whose menu label is menu_label.
gtk_notebook_insert_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.
gtk_notebook_insert_page_menu ()
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.
gtk_notebook_remove_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.
gtk_notebook_current_page
#define gtk_notebook_current_page gtk_notebook_get_current_page |
Compatibility macro; in gtkcompat.h.
gtk_notebook_page_num ()
Returns the page number of child in notebook.
gtk_notebook_set_page ()
Switches to the page number page_num. Negative values stand for the last
page; too large values are ignored.
gtk_notebook_next_page ()
Switches to the next page. Nothing happens if the current page is the last
page.
gtk_notebook_prev_page ()
Switches to the previous page. Nothing happens if the current page is the
first page.
gtk_notebook_reorder_child ()
Moves the page child, so that it appears in position position. Out of
bounds position will be clamped.
gtk_notebook_set_tab_pos ()
Sets the position of the bookmarks.
gtk_notebook_set_show_tabs ()
Sets whether to show the bookmarks or not.
gtk_notebook_set_show_border ()
Sets whether to show the border of the notebook or not. Bookmarks are in the
border.
gtk_notebook_set_scrollable ()
Sets whether the bookmarks area may be scrollable or not if there are too
many bookmarks to fit in the allocated area.
gtk_notebook_set_tab_border ()
Sets whether there should be a border around the bookmarks or not.
gtk_notebook_popup_enable ()
void gtk_notebook_popup_enable (GtkNotebook *notebook); |
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.
gtk_notebook_popup_disable ()
void gtk_notebook_popup_disable (GtkNotebook *notebook); |
Disables the popup menu
gtk_notebook_get_current_page ()
Returns the page number of the current page.
gtk_notebook_get_menu_label ()
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.
gtk_notebook_get_nth_page ()
Returns the content of the page number page_num, or NULL if page_num is
out of bounds.
gtk_notebook_get_tab_label ()
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.
gtk_notebook_query_tab_label_packing ()
Looks for the packing attributes of the bookmarks of child.
gtk_notebook_set_homogeneous_tabs ()
Sets whether the tabs must have all the same size or not.
gtk_notebook_set_menu_label ()
Changes the menu label of child. Nothing happens if child is not in
notebook.
gtk_notebook_set_menu_label_text ()
Creates a new label and sets it as the menu label of child.
gtk_notebook_set_tab_hborder ()
Sets whether the tabs should have a horizontal border.
gtk_notebook_set_tab_label ()
Changes the bookmark label of child. Nothing happens if child is not in
notebook.
gtk_notebook_set_tab_label_packing ()
Sets the packing parameters for the bookmark of child. See
GtkBoxPackStart for the exact meanings.
gtk_notebook_set_tab_label_text ()
Creates a new label and sets it as the bookmark label of child.
gtk_notebook_set_tab_vborder ()
Sets whether the tabs should have a vertical border.