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_set_stack() 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(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 gtk_stack_sidebar_set_stack().

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 #GtkStack associated with this #GtkStackSidebar.

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 #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.

Meta