StackSidebar


Object Hierarchy:

Gtk.StackSidebar Gtk.StackSidebar Gtk.StackSidebar Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.StackSidebar GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.StackSidebar Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.StackSidebar Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.StackSidebar Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_stack_sidebar_get_type ()" ) ]
public class StackSidebar : Widget, Accessible, Buildable, ConstraintTarget

A `GtkStackSidebar` uses a sidebar to switch between `GtkStack` pages.

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 [[email protected]_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: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object



2022 vala-language.org