GtkStackSidebar — An automatic sidebar widget
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkStackSidebar
GtkStackSidebar implements GtkAccessible, GtkBuildable and GtkConstraintTarget.
#include <gtk/gtk.h>
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.
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.
GtkWidget *
gtk_stack_sidebar_new (void
);
Creates a new sidebar.
the new GtkStackSidebar
void gtk_stack_sidebar_set_stack (GtkStackSidebar *self
,GtkStack *stack
);
Set the GtkStack associated with this GtkStackSidebar.
The sidebar widget will automatically update according to the order (packing) and items within the given GtkStack.
self | ||
stack | a GtkStack |
GtkStack *
gtk_stack_sidebar_get_stack (GtkStackSidebar *self
);
Retrieves the stack. See gtk_stack_sidebar_set_stack()
.
self |
typedef struct _GtkStackSidebar GtkStackSidebar;
“stack”
property“stack” GtkStack *
Associated stack for this GtkStackSidebar.
Owner: GtkStackSidebar
Flags: Read / Write
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkStackSidebar.html