Package: gtk

Class gtk:stack-switcher

Superclasses

Documented Subclasses

None

Direct Slots

stack
The stack property of type gtk:stack (Read / Write)
The stack to control.

Details

The gtk:stack-switcher widget acts as a controller for a gtk:stack widget. It shows a row of buttons to switch between the various pages of the associated stack widget.

Figure: GtkStackSwitcher

All the content for the buttons comes from the child properties of the gtk:stack widget. The button visibility in a gtk:stack-switcher widget is controlled by the visibility of the child widget in the gtk:stack widget.

It is possible to associate multiple gtk:stack-switcher widgets with the same gtk:stack widget.

CSS nodes

The gtk:stack-switcher implementation has a single CSS node named stackswitcher and .stack-switcher style class. When circumstances require it, the gtk:stack-switcher widget adds the .needs-attention style class to the widgets representing the stack pages.

Accessibility

The gtk:stack-switcher implementation uses the :tab-list role and uses the :tab role of the gtk:accessible-role enumeration for its buttons.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2025-4-23