Next:
Gtk2::Object
Previous:
Gtk2::Misc
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::Notebook



NAME

Gtk2::Notebook

HIERARCHY

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Notebook

INTERFACES

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable

METHODS

widget = Gtk2::Notebook->new

integer = $notebook->append_page ($child, $tab_label=undef)

(integer return since Gtk2-Perl 1.080)

integer = $notebook->append_page_menu ($child, $tab_label, $menu_label)

(integer return since Gtk2-Perl 1.080)

integer = $notebook->get_current_page

$notebook->set_current_page ($page_num)

integer = $notebook->get_group_id

Since: gtk+ 2.10

$notebook->set_group_id ($group_id)

Since: gtk+ 2.10

integer = $notebook->insert_page ($child, $tab_label, $position)

(integer return since Gtk2-Perl 1.080)

integer = $notebook->insert_page_menu ($child, $tab_label, $menu_label, $position)

(integer return since Gtk2-Perl 1.080)

widget or undef = $notebook->get_menu_label ($child)

$notebook->set_menu_label ($child, $menu_label=undef)

string = $notebook->get_menu_label_text ($child)

$notebook->set_menu_label_text ($child, $menu_text)

integer = $notebook->get_n_pages

$notebook->next_page

widget or undef = $notebook->get_nth_page ($page_num)

integer = $notebook->page_num ($child)

$notebook->popup_disable

$notebook->popup_enable

integer = $notebook->prepend_page ($child, $tab_label=undef)

(integer return since Gtk2-Perl 1.080)

integer = $notebook->prepend_page_menu ($child, $tab_label, $menu_label)

(integer return since Gtk2-Perl 1.080)

$notebook->prev_page

list = $notebook->query_tab_label_packing ($child)

$notebook->remove_page ($page_num)

$notebook->reorder_child ($child, $position)

boolean = $notebook->get_scrollable

$notebook->set_scrollable ($scrollable)

boolean = $notebook->get_show_border

$notebook->set_show_border ($show_border)

boolean = $notebook->get_show_tabs

$notebook->set_show_tabs ($show_tabs)

$notebook->set_tab_border ($border_width)

boolean = $notebook->get_tab_detachable ($child)

Since: gtk+ 2.10

$notebook->set_tab_detachable ($child, $detachable)

Since: gtk+ 2.10

$notebook->set_tab_hborder ($tab_hborder)

widget = $notebook->get_tab_label ($child)

$notebook->set_tab_label_packing ($child, $expand, $fill, $pack_type)

$notebook->set_tab_label ($child, $tab_label=undef)

string = $notebook->get_tab_label_text ($child)

$notebook->set_tab_label_text ($child, $tab_text)

positiontype = $notebook->get_tab_pos

$notebook->set_tab_pos ($pos)

boolean = $notebook->get_tab_reorderable ($child)

Since: gtk+ 2.10

$notebook->set_tab_reorderable ($child, $reorderable)

Since: gtk+ 2.10

$notebook->set_tab_vborder ($tab_vborder)

Gtk2::Notebook->set_window_creation_hook ($func, $data=undef)

Since: gtk+ 2.10

PROPERTIES

'enable-popup' (boolean : readable / writable / private)
If TRUE, pressing the right mouse button on the notebook pops up a menu that you can use to go to a page
'group' (gpointer : readable / writable / private)
Group for tabs drag and drop
'group-id' (integer : readable / writable / private)
Group ID for tabs drag and drop
'homogeneous' (boolean : readable / writable / private)
Whether tabs should have homogeneous sizes
'page' (integer : readable / writable / private)
The index of the current page
'scrollable' (boolean : readable / writable / private)
If TRUE, scroll arrows are added if there are too many tabs to fit
'show-border' (boolean : readable / writable / private)
Whether the border should be shown or not
'show-tabs' (boolean : readable / writable / private)
Whether tabs should be shown or not
'tab-border' (Glib::UInt : writable / private)
Width of the border around the tab labels
'tab-hborder' (Glib::UInt : readable / writable / private)
Width of the horizontal border of tab labels
'tab-pos' (Gtk2::PositionType : readable / writable / private)
Which side of the notebook holds the tabs
'tab-vborder' (Glib::UInt : readable / writable / private)
Width of the vertical border of tab labels

SIGNALS

switch-page (Gtk2::Notebook, gpointer, Glib::UInt)
boolean = focus-tab (Gtk2::Notebook, Gtk2::NotebookTab)
boolean = select-page (Gtk2::Notebook, boolean)
boolean = change-current-page (Gtk2::Notebook, integer)
move-focus-out (Gtk2::Notebook, Gtk2::DirectionType)
boolean = reorder-tab (Gtk2::Notebook, Gtk2::DirectionType, boolean)
page-reordered (Gtk2::Notebook, Gtk2::Widget, Glib::UInt)
page-removed (Gtk2::Notebook, Gtk2::Widget, Glib::UInt)
page-added (Gtk2::Notebook, Gtk2::Widget, Glib::UInt)
Gtk2::Notebook = create-window (Gtk2::Notebook, Gtk2::Widget, integer, integer)

ENUMS AND FLAGS

enum Gtk2::DirectionType

enum Gtk2::NotebookTab

enum Gtk2::PackType

enum Gtk2::PositionType

SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container

COPYRIGHT

Copyright (C) 2003-2008 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:02:55 2009