Package: gtk
Class gtk:notebook
Superclassesgtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:notebook widget is a layout container whose children are
pages that can be switched between using notebook tab labels along one edge. ![]() There are many configuration options for gtk:notebook widgets. Among other things, you can choose on which edge the notebook tabs appear, see the gtk:notebook-tab-pos function, whether, if there are too many notebook tabs to fit the notebook should be made bigger or scrolling arrows added, see the gtk:notebook-scrollable function, and whether there will be a popup menu allowing the users to switch pages, see the gtk:notebook-popup-enable function. GtkNotebook as GtkBuildableExample: A UI definition fragment with the gtk:notebook widget <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 nodesnotebook ├── header.top │ ├── [<action widget>] │ ├── tabs │ │ ├── [arrow] │ │ ├── tab │ │ │ ╰── <tab label> │ │ │ │ │ ├── tab[.reorderable-page] │ │ │ ╰── <tab label> │ │ ╰── [arrow] │ ╰── [<action widget>] │ ╰── stack ├── <child> │ ╰── <child>The gtk:notebook implementation 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 notebook tab with name tab. If action widgets are present, their CSS nodes are placed next to the notebook tabs node. If the notebook is scrollable, CSS nodes with name arrow are placed as first and last child of the notebook tabs node. The main node gets the .frame style class when the notebook has a border, see the gtk:notebook-show-border function. The header node gets one of the .top, .bottom, .left or .right style classes, depending on where the notebook tabs are placed. For reorderable pages, the notebook tab node gets the .reorderable-page style class. A notebook tab node gets the .dnd style class while it is moved with drag and drop. The nodes are always arranged from left-to-right, regardless of text direction. Accessibility
Signal DetailsThe "change-current-page" signallambda (notebook page) :action
The "create-window" signallambda (notebook page) :run-last
The "focus-tab" signallambda (notebook tab) :action
The "move-focus-out" signallambda (notebook direction) :action
The "page-added" signallambda (notebook child num) :run-last
The "page-removed" signallambda (notebook child num) :run-last
The "page-reordered" signallambda (notebook child num) :run-last
The "reorder-tab" signallambda (notebook direction move-to-last) :action
The "select-page" signallambda (notebook move-focus) :action
The "switch-page" signallambda (notebook page num) :run-last
| Returned bySlot Access Functions
Inherited Slot Access Functions |
2024-10-4