gtk.stack_sidebar

Module for [StackSidebar] class

Types 3

A gtk.stack_sidebar.StackSidebar uses a sidebar to switch between gtk.stack.Stack pages.

In order to use a gtk.stack_sidebar.StackSidebar, you simply use a gtk.stack.Stack to organize your UI flow, and add the sidebar to your sidebar area. You can use gtk.stack_sidebar.StackSidebar.setStack to connect the gtk.stack_sidebar.StackSidebar to the gtk.stack.Stack.

CSS nodes

gtk.stack_sidebar.StackSidebar has a single CSS node with name stacksidebar and style class .sidebar.

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

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
StackSidebar self() nothrowReturns `this`, for use in `with` statements.
StackSidebarGidBuilder builder() static nothrowGet builder for [gtk.stack_sidebar.StackSidebar] Returns: New builder object
gtk.stack.Stack stack() @property nothrowGet `stack` property. Returns: The stack.
void stack(gtk.stack.Stack propval) @property nothrowSet `stack` property. Params: propval = The stack.
gtk.stack.Stack getStack() nothrowRetrieves the stack. Returns: the associated [gtk.stack.Stack] or null if none has been set explicitly
void setStack(gtk.stack.Stack stack) nothrowSet the [gtk.stack.Stack] associated with this [gtk.stack_sidebar.StackSidebar].
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.stack_sidebar.StackSidebar]. Returns: the new [gtk.stack_sidebar.StackSidebar]

Fluent builder implementation template for gtk.stack_sidebar.StackSidebar

Methods
T stack(gtk.stack.Stack propval) nothrowSet `stack` property. Params: propval = The stack. Returns: Builder instance for fluent chaining
Methods
StackSidebar build() nothrowCreate object from builder. Returns: New object