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 Stack.sidebarSetStack to connect the gtk.StackSidebar to the gtk.Stack

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(GtkStackSidebar* gtkStackSidebar, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new sidebar.

Members

Functions

getStack
Stack getStack()

Retrieves the stack. See Stack.sidebarSetStack.

getStackSidebarStruct
GtkStackSidebar* getStackSidebarStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStack
void setStack(Stack stack)

Set the gtk.Stack associated with this gtk.StackSidebar

Static functions

getType
GType getType()

Variables

gtkStackSidebar
GtkStackSidebar* gtkStackSidebar;

the main Gtk struct

Inherited Members

From Bin

gtkBin
GtkBin* gtkBin;

the main Gtk struct

getBinStruct
GtkBin* getBinStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getChild
Widget getChild()

Gets the child of the gtk.Bin, 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.

Meta

Since

3.16