StackSidebar

A GtkStackSidebar enables you to quickly and easily provide a consistent "sidebar" object for your user interface.

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

CSS nodes

GtkStackSidebar has a single CSS node with name stacksidebar and style class .sidebar.

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

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new sidebar.

Members

Functions

getStack
gtk.stack.Stack getStack()

Retrieves the stack. See gtk.stack_sidebar.StackSidebar.setStack.

self
StackSidebar self()

Returns this, for use in with statements.

setStack
void setStack(gtk.stack.Stack stack)

Set the #GtkStack associated with this #GtkStackSidebar.

Properties

_gType
GType _gType [@property getter]
stack
gtk.stack.Stack stack [@property getter]
stack
gtk.stack.Stack stack [@property setter]

Static functions

_getGType
GType _getGType()
builder
StackSidebarGidBuilder builder()

Get builder for gtk.stack_sidebar.StackSidebar

Inherited Members

From Bin

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Bin self()

Returns this, for use in with statements.

builder
BinGidBuilder builder()

Get builder for gtk.bin.Bin

getChild
gtk.widget.Widget getChild()

Gets the child of the #GtkBin, or null if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.