TestWindow.NB

Undocumented in source.

Members

Functions

buttonClicked
void buttonClicked(Button button)
Undocumented in source. Be warned that the author may not have intended to support it.
itemActivated
void itemActivated(MenuItem menu_item)
Undocumented in source. Be warned that the author may not have intended to support it.
switchPage
void switchPage(Notebook notebook, guint pageNumber)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Notebook

gtkNotebook
GtkNotebook* gtkNotebook;

the main Gtk struct

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.
GtkNotebookTab
enum GtkNotebookTab

The GtkNotebookTab is not documented

NotebookTab
alias NotebookTab = GtkNotebookTab
Undocumented in source.
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" ). The default handler uses the global window creation hook, if one has been set with gtk_notebook_set_window_creation_hook(). 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(void*, guint, Notebook)[] onSwitchPageListeners;
Undocumented in source.
addOnSwitchPage
void addOnSwitchPage(void delegate(void*, guint, Notebook) dlg, ConnectFlags connectFlags)

Emitted when the user or a function changes the current page. See Also GtkContainer For functions that apply to every GtkContainer

callBackSwitchPage
void callBackSwitchPage(GtkNotebook* notebookStruct, void* arg1, guint arg2, 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.

setTabBorder
void setTabBorder(uint borderWidth)

Warning gtk_notebook_set_tab_border is deprecated and should not be used in newly-written code. Sets the width the border around the tab labels in a notebook. This is equivalent to calling gtk_notebook_set_tab_hborder (notebook, border_width) followed by gtk_notebook_set_tab_vborder (notebook, border_width).

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()

Disables the popup menu.

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.

queryTabLabelPacking
void queryTabLabelPacking(Widget child, int expand, int fill, GtkPackType packType)

Warning gtk_notebook_query_tab_label_packing has been deprecated since version 2.20 and should not be used in newly-written code. Modify the "tab-expand" and "tab-fill" child properties instead. Query the packing attributes for the tab label of the page containing child.

setHomogeneousTabs
void setHomogeneousTabs(int homogeneous)

Warning gtk_notebook_set_homogeneous_tabs is deprecated and should not be used in newly-written code. Sets whether the tabs must have all the same size or not.

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.

setTabHborder
void setTabHborder(uint tabHborder)

Warning gtk_notebook_set_tab_hborder is deprecated and should not be used in newly-written code. Sets the width of the horizontal border of tab labels.

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'.

setTabLabelPacking
void setTabLabelPacking(Widget child, int expand, int fill, GtkPackType packType)

Warning gtk_notebook_set_tab_label_packing has been deprecated since version 2.20 and should not be used in newly-written code. Modify the "tab-expand" and "tab-fill" child properties instead. Modifying the packing of the tab label is a deprecated feature and shouldn't be done anymore. Sets the packing parameters for the tab label of the page containing child. See gtk_box_pack_start() for the exact meaning of the parameters.

setTabLabelText
void setTabLabelText(Widget child, string tabText)

Creates a new label and sets it as the tab label for the page containing child.

setTabVborder
void setTabVborder(uint tabVborder)

Warning gtk_notebook_set_tab_vborder is deprecated and should not be used in newly-written code. Sets the width of the vertical border of tab labels.

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_id()) 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()

Returns the horizontal width of a tab border. Since 2.22

getTabVborder
ushort getTabVborder()

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.

setGroupId
void setGroupId(int groupId)

Warning gtk_notebook_set_group_id has been deprecated since version 2.12 and should not be used in newly-written code. use gtk_notebook_set_group_name() instead. Sets an group identificator for notebook, notebooks sharing the same group identificator will be able to exchange tabs via drag and drop. A notebook with group identificator -1 will not be able to exchange tabs with any other notebook. Since 2.10

getGroupId
int getGroupId()

Warning gtk_notebook_get_group_id has been deprecated since version 2.12 and should not be used in newly-written code. use gtk_notebook_get_group_name() instead. Gets the current group identificator for notebook. Since 2.10

setGroup
void setGroup(void* group)

Warning gtk_notebook_set_group has been deprecated since version 2.24 and should not be used in newly-written code. Use gtk_notebook_set_group_name() instead Sets a group identificator pointer for notebook, notebooks sharing the same group identificator pointer will be able to exchange tabs via drag and drop. A notebook with a NULL group identificator will not be able to exchange tabs with any other notebook. Since 2.12

getGroup
void* getGroup()

Warning gtk_notebook_get_group has been deprecated since version 2.24 and should not be used in newly-written code. Use gtk_notebook_get_group_name() instead Gets the current group identificator pointer for notebook. Since 2.12

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. Note that this funtion can emphasis not be used together with gtk_notebook_set_group() or gtk_notebook_set_group_id(). 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

setWindowCreationHook
void setWindowCreationHook(GtkNotebookWindowCreationFunc func, void* data, GDestroyNotify destroy)

Warning gtk_notebook_set_window_creation_hook has been deprecated since version 2.24 and should not be used in newly-written code. Use the "create-window" signal instead Installs a global function used to create a window when a detached tab is dropped in an empty area. Since 2.10

Meta