Package: gtk

Class gtk:stack-switcher

Superclasses

gtk:box, gtk:container, gtk:widget, gtk:buildable, gtk:orientable, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

icon-size
The icon-size property of type :int (Read / Write)
Use this property to change the size of the image displayed when a stack switcher is displaying icons.
Allowed values: >= 0
Default value: 1
stack
The stack property of type 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.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-4-9