GtkNotebook {RGtk2}R Documentation

GtkNotebook

Description

A tabbed notebook container

Methods and Functions

gtkNotebookNew(show = TRUE)
gtkNotebookAppendPage(object, child, tab.label = NULL)
gtkNotebookAppendPageMenu(object, child, tab.label = NULL, menu.label = NULL)
gtkNotebookPrependPage(object, child, tab.label = NULL)
gtkNotebookPrependPageMenu(object, child, tab.label = NULL, menu.label = NULL)
gtkNotebookInsertPage(object, child, tab.label = NULL, position = -1)
gtkNotebookInsertPageMenu(object, child, tab.label = NULL, menu.label = NULL, position = -1)
gtkNotebookRemovePage(object, page.num)
gtkNotebookPageNum(object, child)
gtkNotebookNextPage(object)
gtkNotebookPrevPage(object)
gtkNotebookReorderChild(object, child, position)
gtkNotebookSetTabPos(object, pos)
gtkNotebookSetShowTabs(object, show.tabs)
gtkNotebookSetShowBorder(object, show.border)
gtkNotebookSetScrollable(object, scrollable)
gtkNotebookSetTabBorder(object, border.width)
gtkNotebookPopupEnable(object)
gtkNotebookPopupDisable(object)
gtkNotebookGetCurrentPage(object)
gtkNotebookGetMenuLabel(object, child)
gtkNotebookGetNthPage(object, page.num)
gtkNotebookGetNPages(object)
gtkNotebookGetTabLabel(object, child)
gtkNotebookQueryTabLabelPacking(object, child)
gtkNotebookSetHomogeneousTabs(object, homogeneous)
gtkNotebookSetMenuLabel(object, child, menu.label = NULL)
gtkNotebookSetMenuLabelText(object, child, menu.text)
gtkNotebookSetTabHborder(object, tab.hborder)
gtkNotebookSetTabLabel(object, child, tab.label = NULL)
gtkNotebookSetTabLabelPacking(object, child, expand, fill, pack.type)
gtkNotebookSetTabLabelText(object, child, tab.text)
gtkNotebookSetTabVborder(object, tab.vborder)
gtkNotebookGetMenuLabelText(object, child)
gtkNotebookGetScrollable(object)
gtkNotebookGetShowBorder(object)
gtkNotebookGetShowTabs(object)
gtkNotebookGetTabLabelText(object, child)
gtkNotebookGetTabPos(object)
gtkNotebookSetCurrentPage(object, page.num)
gtkNotebook(show = TRUE)

Hierarchy

  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkNotebook

Interfaces

GtkNotebook implements AtkImplementorIface.

Detailed Description

The GtkNotebook widget is a GtkContainer whose children are pages that can be switched between using tab labels along one edge.

There are many configuration options for GtkNotebook. Among other things, you can choose on which edge the tabs appear (see gtkNotebookSetTabPos), whether, if there are too many tabs to fit the noteobook should be made bigger or scrolling arrows added (see gtk_notebook_set_scrollable), and whether there will be a popup menu allowing the users to switch pages. (see gtk\Notebook\Enable\Popup(), gtk\Noteobook\Disable\Popup())

Structures

GtkNotebook

tabPos
[GtkPositionType]

Convenient Construction

gtkNotebook is the equivalent of gtkNotebookNew.

Signals

change-current-page(notebook, arg1, user.data)

notebook
[GtkNotebook] the object which received the signal.
arg1
[integer]
user.data
[R object] user data set when the signal handler was connected.

focus-tab(notebook, arg1, user.data)

notebook
[GtkNotebook] the object which received the signal.
arg1
[GtkNotebookTab]
user.data
[R object] user data set when the signal handler was connected.

move-focus-out(notebook, arg1, user.data)

notebook
[GtkNotebook] the object which received the signal.
arg1
[GtkDirectionType]
user.data
[R object] user data set when the signal handler was connected.

select-page(notebook, arg1, user.data)

notebook
[GtkNotebook] the object which received the signal.
arg1
[logical]
user.data
[R object] user data set when the signal handler was connected.

switch-page(notebook, page, page.num, user.data)
Emitted when the user or a function changes the current page.

notebook
[GtkNotebook] the object which received the signal.
page
[GtkNotebookPage] the new current page
page.num
[numeric] the index of the page
user.data
[R object] user data set when the signal handler was connected.

Properties

enable-popup [logical : Read / Write]

If TRUE, pressing the right mouse button on the notebook pops up a menu that you can use to go to a page. Default value: FALSE

homogeneous [logical : Read / Write]

Whether tabs should have homogeneous sizes. Default value: FALSE

page [integer : Read / Write]

The index of the current page. Allowed values: >= 0 Default value: 0

scrollable [logical : Read / Write]

If TRUE, scroll arrows are added if there are too many tabs to fit. Default value: FALSE

show-border [logical : Read / Write]

Whether the border should be shown or not. Default value: TRUE

show-tabs [logical : Read / Write]

Whether tabs should be shown or not. Default value: TRUE

tab-border [numeric : Write]

Width of the border around the tab labels. Default value: 2

tab-hborder [numeric : Read / Write]

Width of the horizontal border of tab labels. Default value: 2

tab-pos [GtkPositionType : Read / Write]

Which side of the notebook holds the tabs. Default value: GTK_POS_TOP

tab-vborder [numeric : Read / Write]

Width of the vertical border of tab labels. Default value: 2

Style Properties

has-backward-stepper [logical : Read]

The "has-backward-stepper" property determines whether the standard backward arrow button is displayed.

Default value: TRUE Since 2.4

has-forward-stepper [logical : Read]

The "has-forward-stepper" property determines whether the standard forward arrow button is displayed.

Default value: TRUE Since 2.4

has-secondary-backward-stepper [logical : Read]

The "has-secondary-backward-stepper" property determines whether a second backward arrow button is displayed on the opposite end of the tab area.

Default value: FALSE Since 2.4

has-secondary-forward-stepper [logical : Read]

The "has-secondary-forward-stepper" property determines whether a second forward arrow button is displayed on the opposite end of the tab area.

Default value: FALSE Since 2.4

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html


[Package RGtk2 version 2.8.6 Index]