StackSidebar


Object Hierarchy:

Object hierarchy for StackSidebar

Description:

[ CCode ( type_id = "gtk_stack_sidebar_get_type ()" ) ]
[ Version ( since = "3.16" ) ]
public class StackSidebar : Bin, Implementor, Buildable

Uses a sidebar to switch between `GtkStack` pages.

<picture> <source srcset="sidebar-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkStackSidebar" src="sidebar.png"> </picture>

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 [method@Gtk.StackSidebar.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.


Namespace: Gtk
Package: gtk+-3.0

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor