logo top
Main Page   Widgets   Namespaces   Book  

Gtk::Notebook Class Reference
[WidgetsContainer Widgets]

Container which shows one of its children at a time, in tabbed windows. More...

Inheritance diagram for Gtk::Notebook:

Inheritance graph
[legend]
List of all members.

Public Types

typedef Notebook_Helpers::PageList PageList

Public Member Functions

virtual ~Notebook ()
GtkNotebook* gobj ()
 Provides access to the underlying C GtkObject.

const GtkNotebook* gobj () const
 Provides access to the underlying C GtkObject.

 Notebook ()
void prepend_page (Widget& child, Widget& tab_label)
void prepend_page (Widget& child)
void prepend_page (Widget& child, const Glib::ustring& tab_label, bool use_mnemonic=false)
void prepend_page (Widget& child, Widget& tab_label, Widget& menu_label)
void prepend_page (Widget& child, const Glib::ustring& tab_label, const Glib::ustring& menu_label, bool use_mnemonic)
void append_page (Widget& child, Widget& tab_label)
void append_page (Widget& child)
void append_page (Widget& child, const Glib::ustring& tab_label, bool use_mnemonic=false)
void append_page (Widget& child, Widget& tab_label, Widget& menu_label)
void append_page (Widget& child, const Glib::ustring& tab_label, const Glib::ustring& menu_label, bool use_mnemonic=false)
void insert_page (Widget& child, Widget& tab_label, int position)
void insert_page (Widget& child, int position)
void insert_page (Widget& child, const Glib::ustring& tab_label, int position, bool use_mnemonic=false)
void insert_page (Widget& child, Widget& tab_label, Widget& menu_label, int position)
void insert_page (Widget& child, const Glib::ustring& tab_label, const Glib::ustring& menu_label, int position, bool use_mnemonic=false)
void remove_page (int page_num=0)
void remove_page (Widget& child)
int get_current_page () const
Widgetget_nth_page (int page_number)
const Widgetget_nth_page (int page_number) const
gint get_n_pages ()
int page_num (const Widget& child)
void set_current_page (int page_number)
void next_page ()
void prev_page ()
void set_show_border (bool show_border=true)
bool get_show_border () const
void set_show_tabs (bool show_tabs=true)
bool get_show_tabs () const
void set_tab_pos (PositionType pos)
PositionType get_tab_pos () const
void set_scrollable (bool scrollable=true)
bool get_scrollable () const
void popup_enable ()
void popup_disable ()
Widgetget_tab_label (Widget& child)
const Widgetget_tab_label (Widget& child) const
void set_tab_label (Widget& child, Widget& tab_label)
void set_tab_label_text (Widget& child, const Glib::ustring& tab_text)
Glib::ustring get_tab_label_text (Widget& child) const
Widgetget_menu_label (Widget& child)
const Widgetget_menu_label (Widget& child) const
void set_menu_label (Widget& child, Widget& menu_label)
void set_menu_label_text (Widget& child, const Glib::ustring& menu_text)
Glib::ustring get_menu_label_text (Widget& child) const
void query_tab_label_packing (Widget& child, bool& expand, bool& fill, PackType& pack_type)
void set_tab_label_packing (Widget& child, bool expand, bool fill, PackType pack_type)
void reorder_child (Widget& child, int position)
PageList::iterator get_current ()
PageListpages ()
const PageListpages () const
Glib::SignalProxy2< void,
GtkNotebookPage*, guint > 
signal_switch_page ()
Glib::PropertyProxy<PositionTypeproperty_tab_pos ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_show_tabs ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_show_border ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_scrollable ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_WriteOnly<
guint > 
property_tab_border ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<guint> property_tab_hborder ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<guint> property_tab_vborder ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<int> property_page ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_enable_popup ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_homogeneous ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.


Protected Member Functions

virtual void on_switch_page (GtkNotebookPage* page, guint page_num)

Related Functions

(Note that these are not member functions.)

Gtk::Notebookwrap (GtkNotebook* object, bool take_copy=false)

Detailed Description

Container which shows one of its children at a time, in tabbed windows.

The Gtk::Notebook widget is a Gtk::Container whose children are pages that can be switched between using tab labels along one edge.

You can use the PageList returned by pages() as any normal STL container to manipulate the pages.


Member Typedef Documentation

typedef Notebook_Helpers::PageList Gtk::Notebook::PageList
 


Constructor & Destructor Documentation

virtual Gtk::Notebook::~Notebook (  )  [virtual]
 

Gtk::Notebook::Notebook (  ) 
 


Member Function Documentation

void Gtk::Notebook::append_page ( Widget child,
const Glib::ustring tab_label,
const Glib::ustring menu_label,
bool  use_mnemonic = false
 

void Gtk::Notebook::append_page ( Widget child,
Widget tab_label,
Widget menu_label
 

void Gtk::Notebook::append_page ( Widget child,
const Glib::ustring tab_label,
bool  use_mnemonic = false
 

void Gtk::Notebook::append_page ( Widget child  ) 
 

void Gtk::Notebook::append_page ( Widget child,
Widget tab_label
 

PageList::iterator Gtk::Notebook::get_current (  ) 
 

int Gtk::Notebook::get_current_page (  )  const
 

const Widget* Gtk::Notebook::get_menu_label ( Widget child  )  const
 

Widget* Gtk::Notebook::get_menu_label ( Widget child  ) 
 

Glib::ustring Gtk::Notebook::get_menu_label_text ( Widget child  )  const
 

gint Gtk::Notebook::get_n_pages (  ) 
 

const Widget* Gtk::Notebook::get_nth_page ( int  page_number  )  const
 

Widget* Gtk::Notebook::get_nth_page ( int  page_number  ) 
 

bool Gtk::Notebook::get_scrollable (  )  const
 

bool Gtk::Notebook::get_show_border (  )  const
 

bool Gtk::Notebook::get_show_tabs (  )  const
 

const Widget* Gtk::Notebook::get_tab_label ( Widget child  )  const
 

Widget* Gtk::Notebook::get_tab_label ( Widget child  ) 
 

Glib::ustring Gtk::Notebook::get_tab_label_text ( Widget child  )  const
 

PositionType Gtk::Notebook::get_tab_pos (  )  const
 

const GtkNotebook* Gtk::Notebook::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

GtkNotebook* Gtk::Notebook::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

void Gtk::Notebook::insert_page ( Widget child,
const Glib::ustring tab_label,
const Glib::ustring menu_label,
int  position,
bool  use_mnemonic = false
 

void Gtk::Notebook::insert_page ( Widget child,
Widget tab_label,
Widget menu_label,
int  position
 

void Gtk::Notebook::insert_page ( Widget child,
const Glib::ustring tab_label,
int  position,
bool  use_mnemonic = false
 

void Gtk::Notebook::insert_page ( Widget child,
int  position
 

void Gtk::Notebook::insert_page ( Widget child,
Widget tab_label,
int  position
 

void Gtk::Notebook::next_page (  ) 
 

virtual void Gtk::Notebook::on_switch_page ( GtkNotebookPage*  page,
guint  page_num
[protected, virtual]
 

int Gtk::Notebook::page_num ( const Widget child  ) 
 

const PageList& Gtk::Notebook::pages (  )  const
 

PageList& Gtk::Notebook::pages (  ) 
 

void Gtk::Notebook::popup_disable (  ) 
 

void Gtk::Notebook::popup_enable (  ) 
 

void Gtk::Notebook::prepend_page ( Widget child,
const Glib::ustring tab_label,
const Glib::ustring menu_label,
bool  use_mnemonic
 

void Gtk::Notebook::prepend_page ( Widget child,
Widget tab_label,
Widget menu_label
 

void Gtk::Notebook::prepend_page ( Widget child,
const Glib::ustring tab_label,
bool  use_mnemonic = false
 

void Gtk::Notebook::prepend_page ( Widget child  ) 
 

void Gtk::Notebook::prepend_page ( Widget child,
Widget tab_label
 

void Gtk::Notebook::prev_page (  ) 
 

Glib::PropertyProxy<bool> Gtk::Notebook::property_enable_popup (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Notebook::property_homogeneous (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<int> Gtk::Notebook::property_page (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Notebook::property_scrollable (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Notebook::property_show_border (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::Notebook::property_show_tabs (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_WriteOnly<guint> Gtk::Notebook::property_tab_border (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<guint> Gtk::Notebook::property_tab_hborder (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<PositionType> Gtk::Notebook::property_tab_pos (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<guint> Gtk::Notebook::property_tab_vborder (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

void Gtk::Notebook::query_tab_label_packing ( Widget child,
bool&  expand,
bool&  fill,
PackType pack_type
 

void Gtk::Notebook::remove_page ( Widget child  ) 
 

void Gtk::Notebook::remove_page ( int  page_num = 0  ) 
 

void Gtk::Notebook::reorder_child ( Widget child,
int  position
 

void Gtk::Notebook::set_current_page ( int  page_number  ) 
 

void Gtk::Notebook::set_menu_label ( Widget child,
Widget menu_label
 

void Gtk::Notebook::set_menu_label_text ( Widget child,
const Glib::ustring menu_text
 

void Gtk::Notebook::set_scrollable ( bool  scrollable = true  ) 
 

void Gtk::Notebook::set_show_border ( bool  show_border = true  ) 
 

void Gtk::Notebook::set_show_tabs ( bool  show_tabs = true  ) 
 

void Gtk::Notebook::set_tab_label ( Widget child,
Widget tab_label
 

void Gtk::Notebook::set_tab_label_packing ( Widget child,
bool  expand,
bool  fill,
PackType  pack_type
 

void Gtk::Notebook::set_tab_label_text ( Widget child,
const Glib::ustring tab_text
 

void Gtk::Notebook::set_tab_pos ( PositionType  pos  ) 
 

Glib::SignalProxy2<void,GtkNotebookPage*,guint> Gtk::Notebook::signal_switch_page (  ) 
 

Prototype:
void switch_page(GtkNotebookPage* page, guint page_num)


Friends And Related Function Documentation

Gtk::Notebook* wrap ( GtkNotebook*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001