- gtkNotebook
GtkNotebook* gtkNotebook;
- getNotebookStruct
GtkNotebook* getNotebookStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
- getStruct
void* getStruct()
the main Gtk struct as a void*
- setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
- appendPage
int appendPage(Widget child, string tabLabel)
Append a page with a widget and a text for a label
- setCurrentPage
void setCurrentPage(Widget child)
- connectedSignals
int[string] connectedSignals;
- onChangeCurrentPageListeners
bool delegate(gint, Notebook)[] onChangeCurrentPageListeners;
Undocumented in source.
- addOnChangeCurrentPage
void addOnChangeCurrentPage(bool delegate(gint, Notebook) dlg, ConnectFlags connectFlags)
- callBackChangeCurrentPage
gboolean callBackChangeCurrentPage(GtkNotebook* notebookStruct, gint arg1, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onCreateWindowListeners
GtkNotebook* delegate(Widget, gint, gint, Notebook)[] onCreateWindowListeners;
Undocumented in source.
- addOnCreateWindow
void addOnCreateWindow(GtkNotebook* delegate(Widget, gint, gint, Notebook) dlg, ConnectFlags connectFlags)
The ::create-window signal is emitted when a detachable
tab is dropped on the root window.
A handler for this signal can create a window containing
a notebook where the tab will be attached. It is also
responsible for moving/resizing the window and adding the
necessary properties to the notebook (e.g. the
"group-name" ).
Since 2.12
- callBackCreateWindow
void callBackCreateWindow(GtkNotebook* notebookStruct, GtkWidget* page, gint x, gint y, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onFocusTabListeners
bool delegate(GtkNotebookTab, Notebook)[] onFocusTabListeners;
Undocumented in source.
- addOnFocusTab
void addOnFocusTab(bool delegate(GtkNotebookTab, Notebook) dlg, ConnectFlags connectFlags)
- callBackFocusTab
gboolean callBackFocusTab(GtkNotebook* notebookStruct, GtkNotebookTab arg1, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onMoveFocusOutListeners
void delegate(GtkDirectionType, Notebook)[] onMoveFocusOutListeners;
Undocumented in source.
- addOnMoveFocusOut
void addOnMoveFocusOut(void delegate(GtkDirectionType, Notebook) dlg, ConnectFlags connectFlags)
- callBackMoveFocusOut
void callBackMoveFocusOut(GtkNotebook* notebookStruct, GtkDirectionType arg1, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onPageAddedListeners
void delegate(Widget, guint, Notebook)[] onPageAddedListeners;
Undocumented in source.
- addOnPageAdded
void addOnPageAdded(void delegate(Widget, guint, Notebook) dlg, ConnectFlags connectFlags)
the ::page-added signal is emitted in the notebook
right after a page is added to the notebook.
Since 2.10
- callBackPageAdded
void callBackPageAdded(GtkNotebook* notebookStruct, GtkWidget* child, guint pageNum, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onPageRemovedListeners
void delegate(Widget, guint, Notebook)[] onPageRemovedListeners;
Undocumented in source.
- addOnPageRemoved
void addOnPageRemoved(void delegate(Widget, guint, Notebook) dlg, ConnectFlags connectFlags)
the ::page-removed signal is emitted in the notebook
right after a page is removed from the notebook.
Since 2.10
- callBackPageRemoved
void callBackPageRemoved(GtkNotebook* notebookStruct, GtkWidget* child, guint pageNum, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onPageReorderedListeners
void delegate(Widget, guint, Notebook)[] onPageReorderedListeners;
Undocumented in source.
- addOnPageReordered
void addOnPageReordered(void delegate(Widget, guint, Notebook) dlg, ConnectFlags connectFlags)
the ::page-reordered signal is emitted in the notebook
right after a page has been reordered.
Since 2.10
- callBackPageReordered
void callBackPageReordered(GtkNotebook* notebookStruct, GtkWidget* child, guint pageNum, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onReorderTabListeners
bool delegate(GtkDirectionType, gboolean, Notebook)[] onReorderTabListeners;
Undocumented in source.
- addOnReorderTab
void addOnReorderTab(bool delegate(GtkDirectionType, gboolean, Notebook) dlg, ConnectFlags connectFlags)
- callBackReorderTab
gboolean callBackReorderTab(GtkNotebook* notebookStruct, GtkDirectionType arg1, gboolean arg2, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onSelectPageListeners
bool delegate(gboolean, Notebook)[] onSelectPageListeners;
Undocumented in source.
- addOnSelectPage
void addOnSelectPage(bool delegate(gboolean, Notebook) dlg, ConnectFlags connectFlags)
- callBackSelectPage
gboolean callBackSelectPage(GtkNotebook* notebookStruct, gboolean arg1, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- onSwitchPageListeners
void delegate(Widget, guint, Notebook)[] onSwitchPageListeners;
Undocumented in source.
- addOnSwitchPage
void addOnSwitchPage(void delegate(Widget, guint, Notebook) dlg, ConnectFlags connectFlags)
Emitted when the user or a function changes the current page.
See Also
GtkContainer
- callBackSwitchPage
void callBackSwitchPage(GtkNotebook* notebookStruct, GtkWidget* page, guint pageNum, Notebook _notebook)
Undocumented in source. Be warned that the author may not have intended to support it.
- appendPage
int appendPage(Widget child, Widget tabLabel)
Appends a page to notebook.
- appendPageMenu
int appendPageMenu(Widget child, Widget tabLabel, Widget menuLabel)
Appends a page to notebook, specifying the widget to use as the
label in the popup menu.
- prependPage
int prependPage(Widget child, Widget tabLabel)
Prepends a page to notebook.
- prependPageMenu
int prependPageMenu(Widget child, Widget tabLabel, Widget menuLabel)
Prepends a page to notebook, specifying the widget to use as the
label in the popup menu.
- insertPage
int insertPage(Widget child, Widget tabLabel, int position)
Insert a page into notebook at the given position.
- insertPageMenu
int insertPageMenu(Widget child, Widget tabLabel, Widget menuLabel, int position)
Insert a page into notebook at the given position, specifying
the widget to use as the label in the popup menu.
- removePage
void removePage(int pageNum)
Removes a page from the notebook given its index
in the notebook.
- pageNum
int pageNum(Widget child)
Finds the index of the page which contains the given child
widget.
- nextPage
void nextPage()
Switches to the next page. Nothing happens if the current page is
the last page.
- prevPage
void prevPage()
Switches to the previous page. Nothing happens if the current page
is the first page.
- reorderChild
void reorderChild(Widget child, int position)
Reorders the page containing child, so that it appears in position
position. If position is greater than or equal to the number of
children in the list or negative, child will be moved to the end
of the list.
- setTabPos
void setTabPos(GtkPositionType pos)
Sets the edge at which the tabs for switching pages in the
notebook are drawn.
- setShowTabs
void setShowTabs(int showTabs)
Sets whether to show the tabs for the notebook or not.
- setShowBorder
void setShowBorder(int showBorder)
Sets whether a bevel will be drawn around the notebook pages.
This only has a visual effect when the tabs are not shown.
See gtk_notebook_set_show_tabs().
- setScrollable
void setScrollable(int scrollable)
Sets whether the tab label area will have arrows for
scrolling if there are too many tabs to fit in the area.
- popupEnable
void popupEnable()
Enables the popup menu: if the user clicks with the right
mouse button on the tab labels, a menu with all the pages
will be popped up.
- popupDisable
void popupDisable()
- getCurrentPage
int getCurrentPage()
Returns the page number of the current page.
- getMenuLabel
Widget getMenuLabel(Widget child)
Retrieves the menu label widget of the page containing child.
- getNthPage
Widget getNthPage(int pageNum)
Returns the child widget contained in page number page_num.
- getNPages
int getNPages()
Gets the number of pages in a notebook.
Since 2.2
- getTabLabel
Widget getTabLabel(Widget child)
Returns the tab label widget for the page child.
NULL is returned if child is not in notebook or
if no tab label has specifically been set for child.
- setMenuLabel
void setMenuLabel(Widget child, Widget menuLabel)
Changes the menu label for the page containing child.
- setMenuLabelText
void setMenuLabelText(Widget child, string menuText)
Creates a new label and sets it as the menu label of child.
- setTabLabel
void setTabLabel(Widget child, Widget tabLabel)
Changes the tab label for child.
If NULL is specified for tab_label, then the page will
have the label 'page N'.
- setTabLabelText
void setTabLabelText(Widget child, string tabText)
Creates a new label and sets it as the tab label for the page
containing child.
- setTabReorderable
void setTabReorderable(Widget child, int reorderable)
Sets whether the notebook tab can be reordered
via drag and drop or not.
Since 2.10
- setTabDetachable
void setTabDetachable(Widget child, int detachable)
Sets whether the tab can be detached from notebook to another
notebook or widget.
Note that 2 notebooks must share a common group identificator
(see gtk_notebook_set_group_name()) to allow automatic tabs
interchange between them.
If you want a widget to interact with a notebook through DnD
(i.e.: accept dragged tabs from it) it must be set as a drop
destination and accept the target "GTK_NOTEBOOK_TAB". The notebook
will fill the selection with a GtkWidget** pointing to the child
widget that corresponds to the dropped tab.
If you want a notebook to accept drags from other widgets,
you will have to set your own DnD code to do it.
Since 2.10
- getMenuLabelText
string getMenuLabelText(Widget child)
Retrieves the text of the menu label for the page containing
child.
- getScrollable
int getScrollable()
Returns whether the tab label area has arrows for scrolling.
See gtk_notebook_set_scrollable().
- getShowBorder
int getShowBorder()
Returns whether a bevel will be drawn around the notebook pages.
See gtk_notebook_set_show_border().
- getShowTabs
int getShowTabs()
Returns whether the tabs of the notebook are shown.
See gtk_notebook_set_show_tabs().
- getTabLabelText
string getTabLabelText(Widget child)
Retrieves the text of the tab label for the page containing
child.
- getTabPos
GtkPositionType getTabPos()
Gets the edge at which the tabs for switching pages in the
notebook are drawn.
- getTabReorderable
int getTabReorderable(Widget child)
Gets whether the tab can be reordered via drag and drop or not.
Since 2.10
- getTabDetachable
int getTabDetachable(Widget child)
Returns whether the tab contents can be detached from notebook.
Since 2.10
- getTabHborder
ushort getTabHborder()
Warning
gtk_notebook_get_tab_hborder has been deprecated since version 3.4 and should not be used in newly-written code. this function returns zero
Returns the horizontal width of a tab border.
Since 2.22
- getTabVborder
ushort getTabVborder()
Warning
gtk_notebook_get_tab_vborder has been deprecated since version 3.4 and should not be used in newly-written code. this function returns zero
Returns the vertical width of a tab border.
Since 2.22
- setCurrentPage
void setCurrentPage(int pageNum)
Switches to the page number page_num.
Note that due to historical reasons, GtkNotebook refuses
to switch to a page unless the child widget is visible.
Therefore, it is recommended to show child widgets before
adding them to a notebook.
- setGroupName
void setGroupName(string groupName)
Sets a group name for notebook.
Notebooks with the same name will be able to exchange tabs
via drag and drop. A notebook with a NULL group name will
not be able to exchange tabs with any other notebook.
Since 2.24
- getGroupName
string getGroupName()
Gets the current group name for notebook.
Since 2.24
- setActionWidget
void setActionWidget(Widget widget, GtkPackType packType)
Sets widget as one of the action widgets. Depending on the pack type
the widget will be placed before or after the tabs. You can use
a GtkBox if you need to pack more than one widget on the same side.
Note that action widgets are "internal" children of the notebook and thus
not included in the list returned from gtk_container_foreach().
Since 2.20
- getActionWidget
Widget getActionWidget(GtkPackType packType)
Gets one of the action widgets. See gtk_notebook_set_action_widget().
Since 2.20