Learn R Programming

RGtk2 (version 2.12.17)

GtkNotebook: GtkNotebook

Description

A tabbed notebook container

Arguments

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) gtkNotebookSetTabReorderable(object, child, reorderable) gtkNotebookSetTabDetachable(object, child, detachable) gtkNotebookGetMenuLabelText(object, child) gtkNotebookGetScrollable(object) gtkNotebookGetShowBorder(object) gtkNotebookGetShowTabs(object) gtkNotebookGetTabLabelText(object, child) gtkNotebookGetTabPos(object) gtkNotebookGetTabReorderable(object, child) gtkNotebookGetTabDetachable(object, child) gtkNotebookSetCurrentPage(object, page.num) gtkNotebookSetGroupId(object, group.id) gtkNotebookSetGroupId(object, group.id) gtkNotebookGetGroupId(object) gtkNotebookGetGroupId(object) gtkNotebookSetGroup(object, group) gtkNotebookGetGroup(object) gtkNotebookSetWindowCreationHook(func, data) gtkNotebook(show = TRUE)

Hierarchy

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

Interfaces

GtkNotebook implements AtkImplementorIface and GtkBuildable.

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 gtkNotebookPopupEnable, gtkNoteobookPopupDisable())

GtkNotebook as GtkBuildable

The GtkNoteboopk implementation of the GtkBuildable interface supports placing children into tabs by specifying "tab" as the "type" attribute of a element. Note that the content of the tab must be created before the tab can be filled. A tab child can be specified without specifying a type attribute. A UI definition fragment with GtkNotebook Content Tab

Convenient Construction

gtkNotebook is the equivalent of gtkNotebookNew.

References

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