Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
NotEnoughSpace :: Env -> DecodeExceptionflat Flat No documentation available.
NotEnoughSpace :: Env -> DecodeExceptionflat Flat.Decoder No documentation available.
NotEnoughSpace :: Env -> DecodeExceptionflat Flat.Decoder.Types No documentation available.
-
gi-gtk3 GI.Gtk.Enums No description available in the introspection data.
NotebookTabFirst :: NotebookTabgi-gtk3 GI.Gtk.Enums No description available in the introspection data.
NotebookTabLast :: NotebookTabgi-gtk3 GI.Gtk.Enums No description available in the introspection data.
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.