gtk.stack_switcher

Module for [StackSwitcher] class

Types 3

The GtkStackSwitcher widget acts as a controller for a #GtkStack; it shows a row of buttons to switch between the various pages of the associated stack widget.

All the content for the buttons comes from the child properties of the #GtkStack; the button visibility in a #GtkStackSwitcher widget is controlled by the visibility of the child in the #GtkStack.

It is possible to associate multiple #GtkStackSwitcher widgets with the same #GtkStack widget.

The GtkStackSwitcher widget was added in 3.10.

CSS nodes

GtkStackSwitcher has a single CSS node named stackswitcher and style class .stack-switcher.

When circumstances require it, GtkStackSwitcher adds the .needs-attention style class to the widgets representing the stack pages.

Methods
GType _gType() @property
StackSwitcher self()Returns `this`, for use in `with` statements.
StackSwitcherGidBuilder builder()Get builder for [gtk.stack_switcher.StackSwitcher] Returns: New builder object
int iconSize() @propertyGet `iconSize` property. Returns: Use the "icon-size" property to change the size of the image displayed when a #GtkStackSwitcher is displaying icons.
void iconSize(int propval) @propertySet `iconSize` property. Params: propval = Use the "icon-size" property to change the size of the image displayed when a #GtkStackSwitcher is displaying icons.
void stack(gtk.stack.Stack propval) @property
gtk.stack.Stack getStack()Retrieves the stack. See [gtk.stack_switcher.StackSwitcher.setStack]. Returns: the stack, or null if none has been set explicitly.
void setStack(gtk.stack.Stack stack = null)Sets the stack to control.
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new #GtkStackSwitcher. Returns: a new #GtkStackSwitcher.
Methods
T iconSize(int propval)Set `iconSize` property. Params: propval = Use the "icon-size" property to change the size of the image displayed when a #GtkStackSwitcher is displaying icons. Returns: Builder instance for fluent ...

Fluent builder for [gtk.stack_switcher.StackSwitcher]