Class Index Cross Index Namespace Index

Class Gtk::Notebook

A container which shows only one of it's children at a time, normally subwindows.
Contained in: Gtk
Derived from: Gtk::Container
Derived by: Gtk::FontSelection

#include <gtk--/notebook.h>


public function member index:

Notebook();
void append_page(Widget& p0, Widget& p1);
Page* get_current() const;
Widget* get_current_child();
gint get_current_page_num() const;
Widget* get_nth_page(gint page_number);
bool get_show_border() const;
bool get_show_tabs() const;
GtkPositionType get_tab_pos() const;
GtkNotebook* gtkobj();
const GtkNotebook* gtkobj() const;
static bool isA(Object* object);
void next_page();
gint page_num(const Widget& child);
PageList& pages();
const PageList& pages() const;
void popup_disable();
void popup_enable();
void prepend_page(Widget& p0, Widget& p1);
void prev_page();
void set_homogeneous_tabs(bool homogeneous);
void set_page(gint page_number);
void set_scrollable(bool scrollable);
void set_show_border(bool show_border);
void set_show_tabs(bool show_tabs);
void set_tab_border(gint border_width);
void set_tab_hborder(guint tab_hborder);
void set_tab_pos(GtkPositionType pos);
void set_tab_vborder(guint tab_vborder);
emitable signal void switch_page(Page*, guint);
virtual ~Notebook();
 

protected function member index:

virtual void switch_page_impl(Page* p0, guint p1);
 

Description:

The Gtk::Notebook widget is a Gtk::Container whose children are pages that can be accessed through bookmarks. The pages are displayed all at the same place.


Function Member Descriptions:

Gtk::Notebook::append_page - (deprecated)

void append_page(Widget& p0, Widget& p1);

Gtk::Notebook::get_current_page_num - Returns the page number of the current page.

gint get_current_page_num() const;
Returns: The page number.


Gtk::Notebook::get_nth_page - Returns the content of the page number page_num, or NULL if page_num is out of bounds.

Widget* get_nth_page(gint page_number);
page_num: The page number. Returns: The content of the page.


Gtk::Notebook::gtkobj - Returns the underlaying gtk+ object.

GtkNotebook* gtkobj();

Gtk::Notebook::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::Notebook::next_page - Switches to the next page. Nothing happens if the current page is the last page.

void next_page();

Gtk::Notebook::page_num - Returns the page number of child in notebook.

gint page_num(const Widget& child);
child: The child. Returns: The page number, or -1 if child is not in notebook.


Gtk::Notebook::popup_disable - Disables the popup menu.

void popup_disable();

Gtk::Notebook::popup_enable - Enables the popup menu.

void popup_enable();
If the user clicks with the right mouse button on the bookmarks, a menu with all the pages will be popped up.


Gtk::Notebook::prepend_page - (deprecated)

void prepend_page(Widget& p0, Widget& p1);

Gtk::Notebook::prev_page - Switches to the previous page. Nothing happens if the current page is the first page.

void prev_page();

Gtk::Notebook::set_homogeneous_tabs - Sets whether the tabs must have all the same size or not.

void set_homogeneous_tabs(bool homogeneous);

Gtk::Notebook::set_page - Switches to the page number page_num.

void set_page(gint page_number);
Negative values stand for the last page; too large values are ignored.

page_num: The page number.



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.

void set_scrollable(bool scrollable);

Gtk::Notebook::set_show_border - Sets whether to show the border of the notebook or not. Bookmarks are in the border.

void set_show_border(bool show_border);

Gtk::Notebook::set_show_tabs - Sets whether to show the bookmarks or not.

void set_show_tabs(bool show_tabs);

Gtk::Notebook::set_tab_border - Sets whether there should be a border around the bookmarks or not.

void set_tab_border(gint border_width);

Gtk::Notebook::set_tab_hborder - Sets whether the tabs should have a horizontal border.

void set_tab_hborder(guint tab_hborder);

Gtk::Notebook::set_tab_pos - pos is one of GTK_POS_LEFT, GTK_POS_RIGHT, GTK_POS_TOP, GTK_POS_BOTTOM.

void set_tab_pos(GtkPositionType pos);

Gtk::Notebook::set_tab_vborder - Sets whether the tabs should have a vertical border.

void set_tab_vborder(guint tab_vborder);