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 _getGType() static nothrow
GType _gType() @property nothrow
StackSwitcher self() nothrowReturns `this`, for use in `with` statements.
StackSwitcherGidBuilder builder() static nothrowGet builder for [gtk.stack_switcher.StackSwitcher] Returns: New builder object
int iconSize() @property nothrowGet `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) @property nothrowSet `iconSize` property. Params: propval = Use the "icon-size" property to change the size of the image displayed when a #GtkStackSwitcher is displaying icons.
gtk.stack.Stack stack() @property nothrow
void stack(gtk.stack.Stack propval) @property nothrow
gtk.stack.Stack getStack() nothrowRetrieves 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) nothrowSets the stack to control.
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new #GtkStackSwitcher. Returns: a new #GtkStackSwitcher.

Fluent builder implementation template for gtk.stack_switcher.StackSwitcher

Methods
T iconSize(int propval) nothrowSet `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 ...
T stack(gtk.stack.Stack propval) nothrow
Methods
StackSwitcher build() nothrowCreate object from builder. Returns: New object