Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
module GI.Gtk.Objects.
Notebook The Notebook widget is a Container 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 notebookSetTabPos), whether, if there are too many tabs to fit the notebook should be made bigger or scrolling arrows added (see notebookSetScrollable), and whether there will be a popup menu allowing the users to switch pages. (see notebookPopupEnable, notebookPopupDisable)
GtkNotebook as GtkBuildable
The GtkNotebook implementation of the Buildable interface supports placing children into tabs by specifying “tab” as the “type” attribute of a <child> 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 <child> type attribute. To add a child widget in the notebooks action area, specify "action-start" or “action-end” as the “type” attribute of the <child> element. An example of a UI definition fragment with GtkNotebook:xml code
<object class="GtkNotebook"> <child> <object class="GtkLabel" id="notebook-content"> <property name="label">Content</property> </object> </child> <child type="tab"> <object class="GtkLabel" id="notebook-tab"> <property name="label">Tab</property> </object> </child> </object>
CSS nodes
plain code
notebook ├── header.top │ ├── [<action widget>] │ ├── tabs │ │ ├── [arrow] │ │ ├── tab │ │ │ ╰── <tab label> ┊ ┊ ┊ │ │ ├── tab[.reorderable-page] │ │ │ ╰── <tab label> │ │ ╰── [arrow] │ ╰── [<action widget>] │ ╰── stack ├── <child> ┊ ╰── <child>
GtkNotebook has a main CSS node with name notebook, a subnode with name header and below that a subnode with name tabs which contains one subnode per tab with name tab. If action widgets are present, their CSS nodes are placed next to the tabs node. If the notebook is scrollable, CSS nodes with name arrow are placed as first and last child of the tabs node. The main node gets the .frame style class when the notebook has a border (see notebookSetShowBorder). The header node gets one of the style class .top, .bottom, .left or .right, depending on where the tabs are placed. For reorderable pages, the tab node gets the .reorderable-page class. A tab node gets the .dnd style class while it is moved with drag-and-drop. The nodes are always arranged from left-to-right, regarldess of text direction.-
gi-gtk3 GI.Gtk.Objects.Notebook Memory-managed wrapper type.
Notebook :: ManagedPtr Notebook -> Notebookgi-gtk3 GI.Gtk.Objects.Notebook No documentation available.
type
NotebookChangeCurrentPageCallback = Int32 -> IO Boolgi-gtk3 GI.Gtk.Objects.Notebook No description available in the introspection data.
type
NotebookCreateWindowCallback = Widget -> Int32 -> Int32 -> IO Notebookgi-gtk3 GI.Gtk.Objects.Notebook The createWindow 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 Notebook:groupName ). Since: 2.12
type
NotebookFocusTabCallback = NotebookTab -> IO Boolgi-gtk3 GI.Gtk.Objects.Notebook No description available in the introspection data.
type
NotebookMoveFocusOutCallback = DirectionType -> IO ()gi-gtk3 GI.Gtk.Objects.Notebook No description available in the introspection data.
type
NotebookPageAddedCallback = Widget -> Word32 -> IO ()gi-gtk3 GI.Gtk.Objects.Notebook the pageAdded signal is emitted in the notebook right after a page is added to the notebook. Since: 2.10
type
NotebookPageRemovedCallback = Widget -> Word32 -> IO ()gi-gtk3 GI.Gtk.Objects.Notebook the pageRemoved signal is emitted in the notebook right after a page is removed from the notebook. Since: 2.10
type
NotebookPageReorderedCallback = Widget -> Word32 -> IO ()gi-gtk3 GI.Gtk.Objects.Notebook the pageReordered signal is emitted in the notebook right after a page has been reordered. Since: 2.10