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.

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

  2. newtype Notebook

    gi-gtk3 GI.Gtk.Objects.Notebook

    Memory-managed wrapper type.

  3. Notebook :: ManagedPtr Notebook -> Notebook

    gi-gtk3 GI.Gtk.Objects.Notebook

    No documentation available.

  4. type NotebookChangeCurrentPageCallback = Int32 -> IO Bool

    gi-gtk3 GI.Gtk.Objects.Notebook

    No description available in the introspection data.

  5. type NotebookCreateWindowCallback = Widget -> Int32 -> Int32 -> IO Notebook

    gi-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

  6. type NotebookFocusTabCallback = NotebookTab -> IO Bool

    gi-gtk3 GI.Gtk.Objects.Notebook

    No description available in the introspection data.

  7. type NotebookMoveFocusOutCallback = DirectionType -> IO ()

    gi-gtk3 GI.Gtk.Objects.Notebook

    No description available in the introspection data.

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

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

  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

Page 68 of many | Previous | Next