GtkNotebook

GtkNotebook

Widget that displays a set of pages with tabs.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkNotebook

Direct subclasses

Description

GtkNotebook is a widget which displays its children widgets in a stacked manner. Each child has a tab which is visible no matter when in the stack the child is. A child can be brought to the top of the stack by clicking on that child's tab. A text editor which allows a user to edit multiple documents at once might make good use of GtkNotebook.

Constructor

GtkNotebook (void);
-- Creates a new GtkNotebook object.

Methods

append_page()
  Add a page to the back of the note book.
append_page_menu()
  Appends a page to the notebook, specifying the widget to use as the label in the popup menu.
prepend_page()
  Add a page to the begining of the note book.
prepend_page_menu()
  Prepends a page to the notebook, specifying the widget to use as the label in the popup menu.
insert_page()
  Add a page to the notebook in the given position.
insert_page_menu()
  Inserts a page into the notebook at the given position, specifying the widget to use as the label in the popup menu.
remove_page()
  Remove the page at the given position from the notebook.
get_current_page()
  Return the index of the current page.
get_nth_page()
  Returns the page in the given position.
page_num()
  Returns the position of the given child widget.
set_page()
  Sets the page in the given position as the top page in the notebook.
next_page()
  Moves the next page in the notebook to the top.
prev_page()
  Moves the previous page in the notebook to the top.
set_show_border()
  Set whether a bevel will be drawn around the notebook pages.
set_show_tabs()
  Set whether or not to show the page tabs.
set_tab_pos()
  Set the edge on which the notebook tabs will be displayed.
set_homogeneous_tabs()
  Set whether or not all tabs should be the same width.
set_tab_border()
  Sets the border around all edges of the notebook's tabs.
set_tab_hborder()
  Sets the border for the left and right sides of the notebook's tabs.
set_tab_vborder()
  Sets the border for the top and bottom sides of the notebook's tabs.
set_scrollable()
  Set whether the tab label area will allow scrolling.
popup_enable()
  Enable the popup menu.
popup_disable()
  Disable the popup menu.
get_tab_label()
  Get the tab's label widget.
set_tab_label()
  Set the tab widget of the given child.
set_tab_label_text()
  Create a new label and set it as the tab label for the given child.
get_menu_label()
  Get the popup menu label for a notebook page.
set_menu_label()
  Set the popup menu label for a notebook page.
set_menu_label_text()
  Set the popup menu label text for a notebook page.
set_tab_label_packing()
  Set how the popup menu label for a page will be packed.
reorder_child()
  Move a page to a given position.

Signals

"clicked"
  Emitted when a tab is clicked by the user.
"switch-page"
  Emitted when the top page of the notebook is changed.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.